hai iam using facebook graph API to send message to facebook user and that is stored in the inbox but the message was not displayed. Is there any permission needed to post the private message when the user is online or offline,any idea or related links? Thank you for helping me.
Asked
Active
Viewed 1,042 times
1
-
Go through this [question](http://stackoverflow.com/questions/11483341/create-new-message-using-facebook-graph-api) – sunhsiv Jan 03 '13 at 07:01
1 Answers
0
You should use a custom url scheme. In your case fb://messaging/compose/1347150232
, where 1347150232 is the userid. This will open the compose message page on the facebook app for a given user.
See also the Communicating with Other Apps:
NSURL *myURL = [NSURL URLWithString:@"fb://messaging/compose/1347150232"];
[[UIApplication sharedApplication] openURL:myURL];
-
I forgot the userid. Url should be fb://messaging/compose/1347150232, where 1347150232 is the userid in this example. Updated the answer. – asgoth Jan 02 '13 at 13:49
-
@asgoth He wants to do it using graph API, your solution just opens the facebook application and lets the user input the message – Aviram Segal Jan 02 '13 at 13:52
-