This is driving me nuts.
Can anyone post a practical example on this? My gratitude for life:
- Publish a post and add the related checkin/location info
- publish a photo and add the related checkin/location info.
In both cases the user delegates the action to the app. We have the access token by prior.
Please no theory, a working coding snipper 😉
I am particularly messed up because facebook asks a nested structures of objects and arrays
Any help would be really appreciated
Grab the
$userinstanceCheck if the logged in user is authenticated.
Present the login url with permissions needed for posting. Specifically the
publish_streampermission as stated in the photo documentation http://developers.facebook.com/docs/reference/api/user/#photosPlace the
me/photoscall in a try/catch block to catch any exceptions that may occur.Check the response from the me/photos call
Display it if your like
Check the place name if you like