0

I know that this subject has been raised a lot, and i have read all the posts related, and still didn't got a clear answer.

So in brief, my windows store app uses a user's permission to login with their facebook account, then i get all of their friends for him to see. Now, i want him to be able to send a message to one of his friends. From all the many posts that i saw, i've encountered this famouse post: how send message facebook friend through graph api using Accessstoken Which was exectly what i wanted, but i understand that facebook is not allowing to send a message via 'send dialog' any more.. So what are my alternatives? how can i send a message to a friend? by email? by a wall post? what perrmissions do i need? I've tried it all with no success..

I'm not using any SDK, it's all from my windows store app; until now i've used URL's via graph API, for example, to retreive the logged in user's friends data:

string request = string.Format("https://graph.facebook.com/me/friends?fields=first_name,last_name,id,picture.width(180).height(180)&access_token={0}", token);

Thanks.

Community
  • 1
  • 1
Erez
  • 205
  • 3
  • 13
  • What makes you say the send dialog doesn't work anymore? it should, and you can prefill a single user ID too – Igy Oct 27 '12 at 19:59
  • Sorry, my bad. The redirect URL i gave was broken, and the error message that i was getting didn't supply that information. case closed. I'm going to bash my head into a wall. Any one knows which field do i have to use to pre populate the message box? the "message=MY_MESSAGE" didn't work. – Erez Oct 28 '12 at 00:46
  • You can't - you set the app-supplied text via the meta tags on the URL you're asking the user to send - the user's message can't be prefilled in the dialog ( and prefilling it directly in the other parts of the API is against policy ) – Igy Oct 29 '12 at 03:48
  • Yeah i realized it later.. thanks for the help anyway Igy – Erez Nov 05 '12 at 12:53

1 Answers1

0

As explained in the comments, you must ensure you have a valid redirect URL. Without this, the send action will not work.

phwd
  • 19,975
  • 5
  • 50
  • 78