Advertisement
Guest User

Untitled

a guest
Aug 26th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. 'XXXX', 'secret'=>'XXXXXX', )); $session = $facebook->getUser(); if($session) { try { $fbme = $facebook->api('/me'); } catch(FacebookApiException $e) { echo 'error bei getsession'; } } //if($session) #permissions if(!$fbme) { #access permission $loginUrl = $facebook->getLoginUrl(array( 'canvas' => 1, 'fbconnect' => 0, 'req_perms' => 'publish_stream', 'next' => 'https://XXXX.herokuapp.com/index.php', 'cancel_url' => 'https://XXXX.herokuapp.com/' )); echo ''; } //else($fbme) #wall post try { $wallpost = $facebook->api('/me/feed','post',array( 'name' => 'Welche Konsole passt zu mir?', 'message' => 'Cool! Ich habe gerade herausgefunden, welche Konsole zu mir passt! Probiers doch auch mal aus! Einfach hier klicken!', 'privacy' => array( 'value' => 'CUSTOM', 'friends' => 'FRIENDS_OF_FRIENDS' ), 'description' => 'Diese Konsole passt zu mir! Probier es auch aus! Klick einfach hier!', 'picture' => '$randomimg', 'caption' => 'https://www.facebook.com/pages/XXXXX', 'link' => 'https://www.facebook.com/XXXXX', 'action' => ''; )); if($facebook->api('/me/feed/','post',$wallpost)) { echo "Wenn du sehen m�chtest, welche Konsole zu dir passt, dann schau auf der Startseite nach :) Es wurde f�r idch gepostet!"; } } catch(FacebookApiException $e) { echo 'facebook api exception'; } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement