views:

220

answers:

2

Hi all,

I have downloaded the PHP class from github which is the wrapper for their Open Graph API. I can log in and list freinds and images etc. But what I am really struggling with is allowing for extended permissions to allow posting to a users wall.

I know somewhere I need to add "scope=publish_stream" to allow this option and can only assume it is on the getLoginUrl method but I am having next to know joy with it.

Can anyone help me.

Steve

A: 

hi;

You need offline_access.

john misoskian
Now I am confused!?! - is that a parameter I pass or is it something I need to request!.
Ok its an authentication parameter still stuglling about where to invoke this using the class on github. would it be something like - $loginUrl = $facebook->getLoginUrl(array("scope=publish_stream,offline_access"));
+1  A: 

$loginUrl = $facebook->getLoginUrl(array('req_perms'=>'publish_stream'));