daogr / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Permissions Facebook Connect #265

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Delete the application under privacy settings
2. Login to website with facebook connect + accept permissions
3. Object is null

What is the expected output? What do you see instead?
Return user data

What version of the product are you using? On what operating system?
Flex builder/actionscript, facebook graph web api 1.5

Please provide any additional information below.

I made 2 versions, one air application and one web application.
When I log in to my air application, facebook asks to accept the permissions. I 
accept them and my desired information is shown.

But when I log in to my online version, facebook doesn't ask to accept all the 
permissions, he asks for only a couple of them. That's why I have a 
nullpointerexception, because I don't have the permission to access some data.

Both permissions in the 2 versions are the same, so I don't understand why this 
could be a problem.

A big thanks to the person who solves this problem!

Original issue reported on code.google.com by covemaek...@gmail.com on 1 Mar 2011 at 1:23

GoogleCodeExporter commented 9 years ago
Problem solved:
This code was wrong: 
Facebook.login(loginHandler,["user_birthday","read_stream", 
"publish_stream","email","user_hometown","user_about_me","user_relationships","u
ser_likes","user_interests","user_location","user_education_history","user_relat
ionship_details","user_work_history"]);

This code works:
Facebook.login(loginHandler,{perms:'user_birthday,read_stream,publish_stream,ema
il,user_hometown,user_about_me,user_relationships,user_likes,user_interests,user
_location,user_education_history,user_relationship_details,user_work_history'});

Original comment by covemaek...@gmail.com on 1 Mar 2011 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by rovertn...@gmail.com on 2 Mar 2011 at 6:30