Invite Facebook's friends from own website - php

When someone visits my web page, I would like to enable him to share the visited web page on his facebook friend's wall, so that other people can also click on the shared link to come on the visited webpage.
Condition: The visited webpage should appear on the facebook wall of selected friends and I would like to throw an user-id with the link so that when someone clicks on the link on facebook wall, when he comes on the web page I can identify who did share the web page by his user-id.
I did try: the facebook send button, link button, send dialog and feed dialog, but somehow none of these meet the requirements above. Thank you so much for answering!

Is this something you looking for? ->https://floating-headland-9554.herokuapp.com
i created a invite friend button at the page for me to send request to my facebook to like my page.
you can view source and get my code, it all javascript integrated.
regards,
woolei - facebook application consultant
website - www.wootube.woolei.com

Related

$_SERVER['HTTP_REFERER'] won't get HTTP_REFERER from facebook messenger app

I have a script that get the $_SERVER['HTTP_REFERER'] when a user visits my page. This works great if it is used on facebook for desktop. But if a user click the link in the mobile app facebook messenger it can't get any HTTP_REFERER.
Anyone have a solution for getting info about if the user clicked a link in the facebook messenger app?
The problem is that when a user clicks on a link the the facebook app, it isn't being redirected, but opened. Since the app isn't a web browser.
If you wanna track where people open your site from, you could parse in a UTM code (just a _GET parameter, but globally used to track origin, many sites like google also uses these, and some even auto append them.).
For more info, see the following article: http://www.launchdigitalmarketing.com/seo-definitions/what-are-utm-codes/

How to redirect to a page without removing a sidebar but the link in the address bar change

I make the question nice and clear.. you know the Facebook Real-Time Chat right? The ChatList or ChatBox that is in the right side of facebook where your online friends appear. When you navigate through accounts by pressing a link on facebook the menu bar and that chatbox is not removed or not included in the page refresh but the browser address bar change. How can I achieve that ?
It seems like Facebook using History API and a combination of AJAX and Backbone.js.
Also spine.js should do this.
Source: http://www.quora.com/How-do-you-change-page-content-and-URL-without-reloading-the-whole-page

Use facebook sharer.php to share on a page wall

I want to link a user to make a share post on my fb company page without having to authenticate. Currently I can get them to share on their own wall with:
But I'm not sure how I can get this to share to a page's wall rather than their timeline.
I got somewhat close by using the dialog feature:
https://www.facebook.com/dialog/feed?app_id=xxx&link=xxx&picture=xxx&name=xxx&caption=xxx&description=xxx&redirect_uri=xxx
But that just showed it as a normal share but done "via appName", unless there is a step I'm missing to link my app to my facebook page?
Thank you!
Unfortunately, the sharer.php method is used only to share only on the user's timeline.
If you want to ask the user to post on a page's timeline, you have to create an app, ask the user to authenticate it and then use the Facebook APIs to post on their behalf. I guess that will be cumbersome in your case, so I would just suggest you redirect to the particular Facebook page.
You can't !
To publish on YOUR page timeline, users need to have the rights to do it (be admin, writer, ...) : it's a manual requirement on the Facebook interface.

Creating a google plus / digg like social bookmark button

For a client of ours we need to create a share button for his site so that the users of his site can add this button to their blogs / sites and others can click on it and it will just open up a popup asking the user to login (if already logged in, the link bookmark page appears) to the clients site and bookmark it. Can somebody guide me on how to do it with php and javascript?
Instead of trying to implement this yourself why not try a 3rd party plugin like http://www.sharethis.com/ ?
It does all of the leg work for you and is very flexible.

Link website and Facebook Page

I have website with like button and facebook page that was created manually. I want link these pages. So when user clicks like button, he subscribes on facebook page and he will recieve all updates in the future. How can
This would depend on if the like button is "liking" your Facebook page, or your website URL.
If it's liking your Facebook page, then the user is automatically subscribed to all those updates - just like if the user had clicked "like" on Facebook.
If it's liking your website URL then you can't make them automatically like the facebook page too.
I think, when you put like button of you FB page its linked automatically.

Categories