-1

I created a game with sprite builder/cocos2d.

How can I send a user to a Facebook Messenger page on button click?

Wyetro
  • 8,439
  • 9
  • 46
  • 64
kazui
  • 141
  • 1
  • 1
  • 6

1 Answers1

0

Your button's action needs to open a custom URL that will launch Messenger. The format is fb-messenger://user-thread/{user-id}. See also this answer.

Community
  • 1
  • 1
NRitH
  • 13,441
  • 4
  • 41
  • 44
  • so i write this fb-messenger://user-thread/{user-id}. in my -(void)button{} ? – kazui Aug 24 '15 at 15:21
  • You construct the URL by substituting the user-id for the `{user-id}` bit, then open the URL. That'll launch Messenger. – NRitH Aug 24 '15 at 15:22