Using Facebook for iOS SDK 3.1, How to Send a Message to a Friend to Avoid Outdated Headers

Considering that Facebook just completed "Removing the ability to publish to friends through the Graph API" posted on the revised roadmaps page.

obviously due to some abuse

https://developers.facebook.com/blog/post/2012/10/10/growing-quality-apps-with-open-graph/

The recommended approach in the Publish to Feed tutorial posted on the Developers site now restricts submissions to its own timeline using graphPath "me / feed".

This development eliminates good approaches suggested by other contributors.

As such, Henry Zhang and others recommend a feed dialogue with him for the outdated headlines posted on

http://developers.facebook.com/docs/howtos/feed-dialog-using-ios-sdk/

so Facebook tells you in "Step 2: Add Backward Compatibility Headers"

Even the published tutorial for games uses outdated headers. However, legacy headers cannot be used in conjunction with the new FacebookSDK.

I may be stubborn to want to stick with the current SDK, but someone managed to send to the timeline of friends from iOS by importing only FacebookSDK 3.1. I'm really quite surprised that Facebook recommends building legacy code apps, but I can't find any other way to do this. The other parts of the 3.1 SDK work well and I don't want to throw the child with water.

+3


source to share


1 answer


When reading the summary information in the Facebook.h file, I realized that it is importing FacebookSDK.h, which picks up the 3.1 SDK interfaces that I have implemented. With this knowledge and some careful editing from the feed dialog example, I can now send a message to a friend's timeline next to 3.1 items. I'm still looking forward to the next release and getting everything in one SDK. Thank.



0


source







All Articles