2

Im using facebook add friend dialog(http://developers.facebook.com/docs/reference/dialogs/friends/) to add friend from my app. It works just fine from desktop but when i try to use it from my mobile app i get error 500 response from the server.

Desktop friends Dialog(works)

https://www.facebook.com/dialog/friends?app_id=appId&id=userId&redirect_uri=https://www.facebook.com/connect/login_success.html

Mobile friends dialog ( error 500 )

https://m.facebook.com/dialog/friends?app_id=appId&id=userId&redirect_uri=https://www.facebook.com/connect/login_success.html

As you can se the only difference is in the m prefix. Is there some other way to send a friend request from mobile ?

dinodsaurus
  • 4,937
  • 4
  • 19
  • 24
  • Are you building a native app or a mobile web-app? I believe the above URLs work only for mobile web-apps. – Shreeni Jun 21 '13 at 08:00
  • Im building app with phonegap... im opening the link with inAppBrowser – dinodsaurus Jun 21 '13 at 08:04
  • can you check if this URL is supported by phonegap's inAppBrowser? I have noticed only versions of Blackberry not supporting the dialog. – Shreeni Jun 21 '13 at 08:09
  • it started working ... I didnt change anything. Obviously there were some api problems ... – dinodsaurus Jun 27 '13 at 08:52
  • Is it still working for you @dinodsaurus? Because it seems like it's not for most (or at least some) of us. Also see: http://stackoverflow.com/questions/19403197/facebook-friend-dialog-not-working-on-mobile. The [bug report](https://developers.facebook.com/bugs/506955376009451) even says: "Won't fix" and I can't wrap my around it. Please help if you can. – Tommy Bravo Dec 10 '13 at 13:57
  • the problem fixed itself so i think it was a fb problem... Im not working anymore on that code so I canot help sry – dinodsaurus Dec 11 '13 at 16:29

1 Answers1

-1

in the mobile side, & amp ; is your problem. Make sure it is & only - facebook doesn't clean the urls, but they used to do that.