Facebook getUser () not working after loading app

My name is Or and I am creating a canvas page for Facebook. So far I have been using localhost to build my application, and after I finished it, I uploaded it to iPage and posted it to Facebook. Suddenly now, it's only when I enter https://apps.facebook.com/APPNAME/ that the application can use getUser () where on all other pages it returns 0.

The weird thing is that on localhost everything worked and I could use getUser () all the time!

I even tested it right now and it works from localhost.

How can I solve this? thank!

+3


source to share


1 answer


Any absolute links?

  • Try to use $_SERVER



Any links http://example

?

  • try it //example

0


source







All Articles