如何在Facebook应用中使用the_permalink作为重定向网址?

时间:2012-05-20 03:33:30

标签: php facebook wordpress

我正在创建Facebook应用程序,但问题是我想使用word-press的the_permalink作为重定向网址,但它无法正常显示重定向url = the_permalink(),这是我的代码

define('REDIRECT_URI',"the_permalink()");

我是php的新手,所以我觉得我缺少一些基本的东西。

2 个答案:

答案 0 :(得分:0)

我不知道Wordpress。但我认为你必须删除* the_permalink()*。

中的引号

答案 1 :(得分:0)

首先删除引号:

define('REDIRECT_URI',the_permalink());

the_permalink() - 返回当前页面网址的函数 - http://codex.wordpress.org/Function_Reference/the_permalink