如何设置facebook回调url? [英] How to set up facebook callback url?

查看:1749
本文介绍了如何设置facebook回调url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置Canvas付款回调网址?我只需要在我的应用程序中为此设置静态定价。 Facebook需要在实时更新标题下的付款对象。我一直在寻找一个简单的直接例子,如何做完整的过程,但没有能够找到一个。我已经通过Unity3d的Friendsmash示例项目。

How do I setup a Canvas payments callback url? I only need to set up for static pricing at this time within my app. Facebook requires a Payments Object under "Realtime Updates" heading. I have been searching everywhere for a simple straight example on how to do the complete process but have not been able to find one. I have been working through the Unity3d Friendsmash example project.

推荐答案

我没有找到很多关于回调的信息,没有真正使用它,我只是使用这个代码里面的PHP脚本只是使其工作:

I haven't found much information on the callback, but since I don't really use it, I just used this code inside a PHP script to just make it work:

$hub_mode = $_GET['hub_mode'];
$hub_challenge = $_GET['hub_challenge'];
$hub_verify_token = $_GET['hub_verify_token'];
if ($hub_verify_token =='YourToken')
{
    echo $hub_challenge;
}

这篇关于如何设置facebook回调url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆