How to send user request to user using Facebook SDK 3.1 for iOS

I am trying to invite a friend of facebook to participate with a user in an iOS app. As far as I understand, I want to use User to User Request, not App App.

I am not sure how to do this.

According to the Send Requests page, there must be a “Facebook” class that has a “dialogue” method. This does not seem to exist on the Facebook SDK 3.1 for iOS.

How can I send a user a user request in the Facebook SDK 3.1 for iOS?

thanks

+4
source share
2 answers

There is a detailed guide on how to do this on Facebook Developer .

Remember to follow this rule, which is mentioned in the manual, but it is easy to skip (my attention):

import the header file Facebook.h and replace the declaration of the declaration of the Facebook framework <FacebookSDK/FacebookSDK.h>

In other words, if you want to avoid a lot of repeated character errors from the compiler, make sure you replace FacebookSDK.h import with Facebook.h instead of importing both.

+1
source

It turns out that the solution should refer to outdated Facebook headers

~ Documents / FacebookSDK / FacebookSDK.framework / Versions / A / DeprecatedHeaders

Then using FBDialog:

 [self.facebook dialog:@"apprequests" andParams:params andDelegate:self]; 
0
source

Source: https://habr.com/ru/post/1445623/


All Articles