Using the Facebook iOS SDK to Post to Friends Wall

I am using the Facebook iOS SDK and I want to get the maximum exposure for the application that I am currently updating.

At that moment, when the application prompts the user to connect to facebook when downloading the application, if the user is not already connected. If the user then connects, I use the following code to send a message to the users wall.

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"http://itunes.apple.com/us/app/video-fx+/id530087007",@"link", @"Video FX+ Live Video Editing",@"name", @"Video FX+ is a fun, creative way to create stunning videos.",@"caption", nil]; [self.facebook requestWithGraphPath:@"/me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self]; 

Is this a better approach? Ideally, I want the message to appear on the friends wall of the user who is logged in.

Will the work be higher or do I need to display a list of friends of users, and then skip this list and send a message to each individual user?

thanks

+1
source share
2 answers

Posting to your own channel will display this channel for all your online friends, probably (sometimes it depends on what you learned about the latest news / news selected by your friends), so there is a chance that they may skip it.

On the other hand, posting to all your friends first by pulling out all your friends (me / friends) and repeating all friends and sending a message one by one is not recommended, as a person can have 5,000 friends and posting 5,000 wall messages is probably a ban / Report spam on your application.

So, it is better to place it on your wall.

+1
source

check this

  NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"http://itunes.apple.com/us/app/video-fx+/id530087007",@"link", @"Video FX+ Live Video Editing",@"name", @"Video FX+ is a fun, creative way to create stunning videos.",@"caption", nil]; [self.facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/feed",friendFacebookID] andParams:params andHttpMethod:@"POST" andDelegate:self]; 
+1
source

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


All Articles