Search code examples
facebookdnsfacebook-wall

Post message to wall, without the domain showing up


I have an application hosted on: "foo.com", I post a message on the user wall, and then (obviously) it shows the site domain from where the app posted.
My client from hell ("bar.com") doesn't want the "foo.com" domain to be show in the wall post, like this:

enter image description here

My client has seen that when foursquare (mobile app) post to a users wall, the domain (foursquare.com) doesn't show up on the wall post, like this:

enter image description here

And he wants that because: "it has to be possible" (he kinda has a point, in his own evil way).

Is there any way to acomplish this? (he doesn't want to buy a secure domain/hosting)

I'm using this code:

 $arguments = array(  
   'message' => 'my message',  
   'link' => FACEBOOK_PAGE_TAB_URL,  
   'description' => 'The description',  
   'picture' => FACEBOOK_LOGO  
 );

 $this->facebook->api('/me/feed', 'post', $arguments);

Solution

  • Since you are using the feed API endpoint, you are creating a Post with the API. Since your Post contains a link, Facebook is displaying the domain for that hyperlink. As far as I can tell, there is no way to programmatically create a Post with a hyperlink and not have it display a domain.

    If it is important that foo.com not be shown, you could either make sure that the hyperlink is from bar.com, or use the Feed Dialog to allow the user to post the story to their own wall.

    I suspect that the reason that the screenshot of the Foursquare post does not display a domain is because they are using the mobile version of the Feed Dialog, as suggested in Facebook's documentation.