开发者

facebook application feed dialogue php

开发者 https://www.devze.com 2023-02-19 08:37 出处:网络
i am trying to generate a feed dialogue through php to post contents 开发者_如何学Goo user\'s wall.

i am trying to generate a feed dialogue through php to post contents 开发者_如何学Goo user's wall. i have taken extended permissions. the variables used have been defined and tested. still the code is not working. could anyone please tell me whats wrong with the following code:

{}


Obviously you have issues with your string concatenation:

$feed_url = "http://www.facebook.com/dialog/feed?app_id=" 
            . $app_id . "&redirect_uri=" . urlencode($canvas_page)
            . "&message=" . $message
            . "&link=" . $linky
            . "&picture=" . $imageurl
            . "&name=" . $name;

if (empty($_REQUEST["post_id"])) {
    echo("<script> top.location.href='" . $feed_url . "'</script>");
} else {
    echo ("Feed Post Id: " . $_REQUEST["post_id"]);
}

Also is it $linky or $link ?

0

精彩评论

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