Guest User

Untitled

a guest
Jan 17th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. require_once('facebook.php');
  2. $facebook = new Facebook(
  3. array( 'appId' => 'YOUR_APP_ID'
  4. , 'secret' => 'YOUR_APP_SECRET'));
  5.  
  6. ... // authenticate user with access token here
  7.  
  8. $facebook->api('/me/feed', 'POST',
  9. array ( 'message' => 'YOUR_MESSAGE'
  10. , 'name' => 'YOUR_APP_NAME'
  11. , 'caption' => 'YOUR_CAPTION'
  12. , 'link' => 'YOUR_LINK'
  13. , 'picture' => '90x90_ICON_IMAGE'));
Add Comment
Please, Sign In to add comment