philippec / PhFacebook

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

create a new post #5

Closed jfemoreau closed 13 years ago

jfemoreau commented 13 years ago

Can I use your framework to post a new message on my wall?

If so, How?

If not, can you give me a hit of how I could achieve this?

Thanks!

J F

philippec commented 13 years ago

Sure! All you have to do is enable write permissions when calling -getAccessTokenForPermissions:. The one you are looking for is "publish_stream". It's in the Readme, actually :-)

jfemoreau commented 13 years ago

I think because of the way you format your url request there is no way to add more query items (e.g. me/feed?access_token=...&message=the message). Also I think to do so the url request http method needs to be set to Post.

And I guess this is more like a request than an issue (I'm sorry I did not know how to create an request).

Thanks!

J F

philippec commented 13 years ago

That is possible; I have not tested the framework with writing to the wall.

To create a request, you can fork the repository, make changes and create a pull request. I will then review your changes and if they are good (hint: you may want to modify the sample app to showcase your changes!), I will pull them in with attribution.

I apologize that I don't have much time to implement requests, but if you want to implement / test it and send me a pull request I will certainly evaluate it!

Note that in the future, if I need it, I may have to implement this (if it does not work already, and I think it should unless proven otherwise). However, I do not need it now, so it is not likely to get done quickly.