English 中文(简体)
改写在Facebook时线上的URLs
原标题:Changing the URLs posted to Facebook Timeline

我有一个“Facebook”网页,使用以下功能,在用户填写表格后将行动排到时间表。

function postFoo(){
    FB.api(
         /me/<?php echo $namespace; ?>:foo?bar=<?php echo $url;?> ,
         post ,
        function(response) {
            if (!response || response.error) {
                    console.log(response.error);
            } else {
                    console.log( Foo was successful! Action ID:   + response.id);
            }
        });
}

所有这一切都是正确的,而且行动也正确地列入时间表中,但时间表中所含链接的URls,如回到实际地点(例如:),而不是可能预期的面对面表格URL。 我试图将URI改用在纸面上,没有任何uck。

Has anyone else encountered this issue and if there are any resolutions or suggestions I would be very grateful.

问题回答

这是一种骗局。 Facebook总是将用户送回在标语中使用的URL。

你们需要做的是,如果用户是从Facebook开始,然后将用户转回Franp。 您可在项目设计书上核对:URL是否在项目设计书上登上了fb_source/ code>或fb_action_ids。

PHP Example:

<?php
if ( isset( $_GET[ fb_source ] ) || isset( $_GET[ fb_action_ids ] ) ) {
    header(  Location:  . $fan_page_url );
}
?>

这将使任何点击行动的人重新回到从那页起的行动。





相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签