moreiracruz / facebook-java-api

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

Java Facebook - users_hasAppPermission(Permission.STATUS_UPDATE) always return false. #250

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Good moring everybody. I'm tring to write a java servlet that interact with
facebook, using java api. Once the user has loged into facebokk, I'd like
to set the status using the method "users_setStatus(message, false);"of the
Class FacebookJsonRestClient. To perform this action the logged in user
should have the permission. To check this I use the
users_hasAppPermission(Permission.STATUS_UPDATE) method , but It always
return false. How can I give the Permission to the user?
The user is the owner of the application.
I'm using facebook-java-api-2.1.1 

Thanks 

Matteo

Original issue reported on code.google.com by km...@libero.it on 5 Oct 2009 at 8:25

GoogleCodeExporter commented 8 years ago
The application I'm writing is a Desktop one and not a web application

Original comment by km...@libero.it on 5 Oct 2009 at 8:35

GoogleCodeExporter commented 8 years ago
Hello,

I have the same problem with the java API...
I can't set the status of the user(me) because of status_update permission...

How can I allow permission to a user? 
Have you find something to resolv this problem?

Regards, (sorry about my poor english ^^)

Raphael

Original comment by pi.r...@gmail.com on 8 Oct 2009 at 9:52

GoogleCodeExporter commented 8 years ago
Hi Raphael,
thanks for replay, your english is good, don't worry about that.

I found an example on google that send a post request to facebook to grant 
permission to the logged user to 
this url:

"http://www.facebook.com/connect/prompt_permissions.php?"ext_perm=status_update

The recived http status is 200, so I gess it's correct but when I use the 
method:
users_hasAppPermission(Permission.STATUS_UPDATE)

before the method: users_setStatus(message, false)

and I recive the false value.

Thanks 

Matteo

Original comment by km...@libero.it on 8 Oct 2009 at 1:46