philippec / PhFacebook

MacOSX Interface to Facebook graph API
http://developer.casgrain.com/?p=107
Other
177 stars 44 forks source link

How to write a Facebook Status? #7

Closed ghost closed 13 years ago

ghost commented 13 years ago

Hello,

I asked this question ones on the developer's Blog Comment Section and he answered that it should be possible not only to read something from facebook but also to write. But the sample App only uses the "read" property and if I use the "write" property the sample app should be apple to write a status to facebook. But now I'm a bit ashamed because I really don't get where the code implements something like a "read" property?! Can someone give me a hint where the code explicitly uses "read" and where I have to change the code to "write"?

Thank you so much

twickl

philippec commented 13 years ago

In your code, you have to call getAccessTokenForPermissions:, which uses an array of permissions like @"read_stream", etc.

Just add @"status_update" to the array and Facebook should pop up the proper permissions.

What are you trying to do? There is no "write_stream" permission anymore; if you put "write_stream", there will be an error returned in the string.

philippec commented 13 years ago

There is however a "publish_stream" permission.

As noted in the Readme, you will find all permissions here: http://developers.facebook.com/docs/authentication/permissions/

ghost commented 13 years ago

Hi Phillippe,

I had to pause this Project for a long time and now I'm back on this. I'm not so familiar with the Facebook API and still collect Infos on this topic. Basically I only need to get the Status updates and Infos of my Facebook contacts and show them in my Application but it would be nice if it is possible to write my own status to facebook from within my application. And this is no longer possible? That sucks...

ghost commented 13 years ago

Sorry, did you close this Issue or did I close this by accident?!

ghost commented 13 years ago

Thank you! I think I get now how it works!

philippec commented 13 years ago

Glad to hear it!