I am developing a Facebook application to participate in the competition and promotion, and I intend to create a tab on my company page that will give you access to the application.
As soon as their users can appoint local companies to receive rewards. Later; after the nominations will be, users can vote for the winner.
I have included Open Graph in my application to use Object Types ( Organization ), Action Types ( Nominate , Vote For ), and Aggregations ( Nominations ). My main task is to transfer these actions to the user's timeline.
I used an example recipe as a base. I provided my code to demonstrate authentication, and the post action needed to send a combination of action types / object types.
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> <head prefix="og: http://ogp.me/ns# og_<<app namespace>>: http://ogp.me/ns/apps/<<app namespace>>#"> <meta property="fb:app_id" content="<<app id>>" /> <meta property="og:type" content="<<app namespace>>:organization" /> <meta property="og:title" content="Client 1" /> <meta property="og:image" content="<<client image path>>" /> <meta property="og:description" content="Client 1 description here ... " /> <meta property="og:url" content="<<custom client URL>>"> <script src="http://connect.facebook.net/en_US/all.js"></script> <script type="text/javascript"> </script> </head> <body> <div id="fb-root"></div> <div id="auth-status"> <div id="auth-loggedout"> <a href="#" id="auth-loginlink">Login</a> </div> <div id="auth-loggedin" style="display:none"> Hi, <span id="auth-displayname"></span> (<a href="#" id="auth-logoutlink">logout</a>) </div> </div> <h2>Client 1</h2> <form> <input type="button" value="Nominate" onclick="nominate()" /> </form> <fb:activity actions="<<app namespace>>:nominate"></fb:activity> </body> </html>
The user under test has the following error:
Requires extended permission: publish_actions
And I came across the following error (I am the administrator for this application):
This method must be called with an app access_token
The first mistake bothers me. I can not select publish_actions from Apps | <My App> | Permissions | Extended Permissions Apps | <My App> | Permissions | Extended Permissions Apps | <My App> | Permissions | Extended Permissions . In addition, the fixes that I discovered suggest me reclassify my application to Games (this does not work) and complete my aggregations (I still did not work).
- How can I overcome this mistake?
- What can I do to fix my error
This method must be called with an app access_token ?
Thanks in advance,
Mike
EDIT
I believe that the access_token error that I encountered was related to the fact that I tested / interacted with the application directly on the page URL; not via Facebook.
I no longer get Requires extended permission: publish_actions error ; however, my testers and developers. I know that I am encountering this error because publish_actions permission is not requested at the login facebook.com login prompt.
If my developers / testers log out of Facebook, then go to my invitation:
FB.login(function (response) { }, { scope:'publish_actions'});
This permission and application are then integrated into their Facebook session.
My last question is, is there defacto, the preferred method for requesting this permission without logging in to / from Facebook?