get a # from a url in php

后端 未结 2 1229
囚心锁ツ
囚心锁ツ 2021-01-14 13:19

I\'m trying to code with the facebook API

here it says : http://developers.facebook.com/docs/authentication/javascript to get the access_token thing, but it\'s after

2条回答
  •  情话喂你
    2021-01-14 13:42

    The fragment identifier is only used client side. The browser doesn't send it to the server, so you can't access it with PHP.

    To quote the page you link to:

    Your JavaScript library can read the token from the URL and store it in a cookie for future use.

    You have to use JS to read it before it can be sent to the server.

提交回复
热议问题