开发者

how to get the current URL in fbjs?

开发者 https://www.devze.com 2023-02-04 07:57 出处:网络
I want to get the current URL in fbjs. I have used this window.location 开发者_如何学C However, this doesnt work.

I want to get the current URL in fbjs. I have used this

window.location
开发者_如何学C

However, this doesnt work.

Can anyone please help me ? Thanks.

- ahsan


well, heres how I solved it :

Using PHP, we can get the page id and the app id.

Using FQL, we can get the page title.

Using these 3 values we can recreate the current URL (I am working on a fanpage tab)

Hope this helps :)

- ahsan

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号