开发者

Creating a facebook application

开发者 https://www.devze.com 2022-12-21 06:08 出处:网络
Hi I created a desktop application. I was wondering what I should put for my Canvas Callback URL. I tried to define it as local (http://localhost:8084) but it doesnt accept it.

Hi I created a desktop application. I was wondering what I should put for my Canvas Callback URL. I tried to define it as local (http://localhost:8084) but it doesnt accept it.

I need it to get the session using http://www.facebook.com/login.php?api_key=YOUR_API_KEY&v=1.0

开发者_如何学编程

Thanks!


Your canvas callback URL has to be an address that Facebook can actually fetch data from. That is not localhost, since as the name implies that is local to you.

Read the following: http://wiki.developers.facebook.com/index.php/Canvas_Callback_URL#How_It_Works

Your canvas page URL is http://apps.facebook.com/foobar/
Your canvas callback URL is http://www.foobar.com/yourapp/
[...etc]

Putting localhost as the canvas callback url is like buying something online and filling the shipping address as "my house".


For some basic information on how a Facebook application works, this is a good reading material:

http://wiki.developers.facebook.com/index.php/Anatomy_of_a_Facebook_App

0

精彩评论

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

关注公众号