get a # from a url in php

后端 未结 2 1230
囚心锁ツ
囚心锁ツ 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:36

    You won't be able to do it in PHP - you can only access it in javascript - the fragment/hash never reaches the server, it is processed by the browser

    in Javascript, you can access the fragment using

    window.location.hash
    

提交回复
热议问题