7

i am working on integrating fb login to our own application. Problem is example i downloaded it's working fine,when use the code in my project its getting error

Note: I Checked the fbapplicationid in .plist and in the url page they both are same.

enter image description here

LOVE_2_CODE
  • 445
  • 4
  • 14
  • use better formatting so that other can understand as well as other who face the issue can also find this question – Shubhank Apr 01 '13 at 07:21

2 Answers2

5

After User authorizes the App. Facebook request the browser to launch the app that requested access. That url is based on App's url schemes ( defined in App's plist). So you need to double check that. Safari shows error because it cannot find the url scheme -> Invalid URL

it is of the form like fb<myAppId>. After that do a clean build of project and run.

Shubhank
  • 21,721
  • 8
  • 65
  • 83
  • hi shaggy ,u mean i want to edit my plyst id from 123 to fb123 .!!and i always make clean builds to executes this app – LOVE_2_CODE Apr 01 '13 at 07:31
  • not always! it is done to be sure changes reflect. and yes to fb123 – Shubhank Apr 01 '13 at 07:44
  • shaggy ,i made changes what u said before but unfortunately error doesn't solved,any other suggestions – LOVE_2_CODE Apr 01 '13 at 08:22
  • hi shaggy,finally i solved it,i found what i missed, i added FBid in plist but i didnt mention URLSchema,When i integrated this example first time it automatically generated the URLSchema so i didnt notice that time,after that i created it manually now it exiguted successfully.Thanks for you help man its really encouraging ..:) – LOVE_2_CODE Apr 02 '13 at 04:02
5

Friends ,when ever you are trying FBlogin to your application ,dn't forget to check .plist

Must verify before you exegete

1.FBapplication ID

2.URLSchemas

LOVE_2_CODE
  • 445
  • 4
  • 14