-2

I only know ccs and html so the following is quite hard for me to do and understand

Im wanting a text box form that a user can enter a facebook user id, press a button and load the profile picture in a frame or something next to the button.

I know there a bit about this on here ive had a pretty good look around but not know php hasn't helped

I was thinking the "text box form" should somehow insert the User ID on button click into the code below? i also wanted the profiles name ? but don't want to get too ahead of myself :)

<img src="https://graph.facebook.com/User ID/picture" alt="Profile Picture" height ="42" width="42">   

As I've said i don't know too much, so any help would be amazing especially in simple terms

4

1 に答える 1

0

この方法でユーザープロフィール画像を取得します。

http://graph.facebook.com/USER_ID/picture

あなたはかなり近かった:

<img src="https://graph.facebook.com/USER_ID/picture" 
     alt="Profile Picture" height ="42" width="42">  

そして、この方法で彼についてのより多くの情報:

http://graph.facebook.com/USER_ID

curlまたはをPHPで使用file_get_contentして、要求されたコンテンツを取得します。

于 2013-03-09T09:29:17.550 に答える