Time for action – requesting extended permissions
To make your application always request the user_interests
extended permission, we merely have to modify HTTPRequestor.attemptToAuthenticate()
to:
public function attemptToAuthenticate():void
as shown in the following code:
{
ExternalInterface.call("window.open",
"https://graph.facebook.com/oauth/authorize?client_id=«your_application_id»&type=user_agent&redirect_uri=«your_callback_url»"
+ "&scope=user_interests",
"facebookLoginWindow",
"height=370, width=600");
}
That'll work fine; it'll give you the pop-up window asking you if it's okay for the application to access your profile information.
If that's all you need – and all you'll ever need – then you could leave it at that. But what if you want ...
Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.