Talk:Extended permissions
From Facebook Developer Wiki
Question: Is there any way to grant extended permissions from the mobile facebook site. None of the three methods (FBML, form based, or even directing to the authorize.php page) work. There is currently no way to enable any extended permissions from a mobile phone. Is this going to be fixed? --
- It's a feature that's being worked on at the moment. I can't offer you a completion date at this time, sorry. -- Pete (563683308 14:28, 7 January 2009 (PST))
This is a much-needed feature. We can authenticate users against http://m.facebook.com/login.php, we can add our application to a users account at http://m.facebook.com/tos.php, but there is no script at http://m.facebook.com/authorize.php to request extended permissions from the user. This is essential for users in developing countries where PC ownership is low and almost all interaction with Facebook is via mobile.
ANY ANSER ON THIS? I am also hitting the wall when trying to authenticate user to use certain extended permission, such as status_update and offline_access. It direct user to http://www.facebook.com/authorize.php and the login button does not even respond to most of the smartphones or PocketPC phones. This is really a problem. Please let me know if there is anything we can do to get around the problem for now. Thanks!
Koko at kokolin@yahoo.com
- Hopefully this will be ready for mobile apps in a couple of weeks. Pete (563683308 15:39, 20 May 2009 (PDT))
Is there any way to add the "read_stream" permission for Pages? Seems like the open stream API has the option of using a page id as a source id (@param array $source_ids users/pages to look at (def: all connections)), but the problem is setting the permission (The underlying FQL query made by this API call has encountered the following error: stream requires the read_stream extended permission). -- Marko (1260192333 23:34, 3 June 2009 (PDT))
Just raising the attention on this topic again: any news yet? (Luca, 646278574 18:14, 8 June 2009 (PDT))
- Not at this time, no. Pete (563683308 14:48, 9 June 2009 (PDT))
Wanted to check in on this again as there haven't been any comments for a month or so - is there a way to grant a Page any of the extended permissions? --Dave 1801770 08:00, 9 July 2009 (PDT)
Is there any instruction for Actionscript Steam features? I can't find how I can grant Stream permission Flash platform.
- Adobe supports the ActionScript library. You can check their documentation at http://facebook-actionscript-api.googlecode.com/svn/release/current/docs/index.html Pete (563683308 15:03, 17 July 2009 (PDT))
Is it possible to chain multiple extended permission requests from a desktop application? IE: Asking for public_stream, and as soon as the user hits accept, ask for read_stream. The article makes it sound like its possible via the URL encoded get next being the next page that would grant permission. However, when I try this, it jumps to the last page in the chain, grants that, and says its done. Does anyone have an example URL where they have this working?
Update: Thanks for updating the article with a link to the authentication page. It was very helpful and I was able to solve my problem with it.
Contents |
[edit] Details please
This article could use some elaboration on the following statement:
"You can also prompt a user who administers a Facebook Page to grant permissions for the Page as well. If the user is a Page admin and encounters the permission dialog, the user can choose to whom the permission applies: to the user him or herself and to any or all of the Pages."
How ??
- Whichever method you use to prompt for permissions (FBML tag, JS call, etc) works on the current user. If that user is an admin for one or more Pages, that user will see a drop down list in the permission dialog showing all the Pages the user admins. The user can select him or herself and any Pages from that list. The screenshot shows an example of this. Pete (563683308 12:47, 17 August 2009 (PDT))
[edit] To invoke grant permission in iframed PHP application
I m not able to use the stream.publish function. I have made a php application and its integrated with facebook by IFRAME. So I want to invoke the permission ask to the user. But not finding any solution to do it. Please help.
I wish I found a more acceptable way.
- Can you elaborate on the problem you're having, please? Depending upon the type of application you have, there are alternatives discussed in the article. Thanks, Pete (563683308 12:32, 13 September 2009 (PDT))
I'd like to use stream.publish with an iframe canvas + simple html based application. I use no fbjs,fbml,xfbml or fql, only the REST api. I'd like to get stream.publish permission as soon as possible, preferably together with the authorization. My solution works just fine - however the docs say this alternative should only be used for facebook connect sites. Is it OK to use this URL with a canvas based app anyway?
How did you solved this problem? I want to show the extended permission dialog from my .NET IFrame application. It fails and shows this error -- "The Facebook Connect cross-domain receiver URL ( http://apps.facebook.com/myapp/mypage.aspx?xxRESULTTOKENxx) must start with http or https."
Is there any answer to the dialog error problem for asking xtended permissions?
[edit] Retrieving Page ID after extended permissions
Question: When using FBJS to ask for extended permissions, is there a way to retrieve the page ids the user allowed for the extended permissions? For example, if a user is an admin for PageA, PageB, and PageC and selects PageA and PageC in the extended permission drops down, is there a way to obtain the PageA and PageC ids? Currently it looks like I need to run a couple FQL queries to determine these Ids.
- Right -- you have to run some queries to determine which pages were granted the permission. Keep in mind you can use fql.multiquery to speed up the process. Pete -- 563683308 08:12, 30 October 2009 (PDT)
[edit] Passing session in to m.facebook.com/authorize.php?
I have a mobile application - I can login fine through m.facebook.com/login.php - however it appears that the req_perms is being ignored... SO I could detect the permission problem, and send the user to m.facebook.com/authorize.php - but I'm in a cookie-less environment... The user is going to ask to get logged in a second time, and they were just told on the first login that the application should only allow them to login once. Any chance I can pass my users session in to m.facebook.com to save them having to login again?
- Hi Chris, we've modified the mobile auth and permissioning models some. Check out Authorization and Authentication for Facebook for Mobile Applications for details. In short, you should only direct users to tos.php (Facebook will redirect to login.php if needed) and you should get extended permissions via connect/prompt_permission.php. Pete -- 563683308 11:23, 2 November 2009 (PST)
