Facebook Open Graph issue while posting a message -
i have created story in app using action "check" , object "website". checked page in debugger tool , working fine. problem when trying post using open-graph api, throwing error "an active access token must used query information current user.". below code (php) post on facebook. please me in resolving issue.
$access_token = $user->getaccesstoken(); $facebook->setaccesstoken($access_token); $publishstream = $facebook->api("/me/mylocalsite:interest?story=http://www.test.net/fbpost/test.html&message=test message", 'post');
i doing whole thing in testing enviourment. till app not approved. please suggest doing wrong.
Comments
Post a Comment