1

I'm developing an iOS App and I want to have users log into my App using the Facebook SDK and then privately message a Facebook Page I've created. My App logs into Facebook fine and I can get a user to post onto their own walls, but I want to have the user privately message my Facebook Page? Any ideas on how I can achieve this?

user1522318
  • 83
  • 1
  • 8

1 Answers1

0

You cant send him a private message using iOS Facebook SDK, but you can send him a App Request, It will shown in the AppCenter of the User, Following code will help you

Facebook * fbReq = [[Facebook alloc] initWithAppId:@"xxxxxxxxxxxxxx" andDelegate:self];


NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"xxxxxxxxxxxxxxxxxxxxx", @"title",
                               @"xxxxxxxxxxxxxxxxxxxxxxxxxxxx",  @"message", 
                               @"xxxxxxxxxxx", @"to",
                               nil];  

[fbReq dialog:@"apprequests" andParams:params andDelegate:self];
junaidsidhu
  • 3,539
  • 1
  • 27
  • 49