Facebook Page Like using Facebook Connect - php

Is there any way so that Facebook connect button could be used for liking facebook page too ?
Means If a user clicks on facebook connect button on my website then he automatically likes my page after authentication.

You cannot perfom multipule actions in a single plugin. Or Facebook are not allowing to perfom this type actions. You have to put Facebook Like button to your site
Help Center -TheTricksLab.com

Related

Is it possible to add a post on a facebook page via the graph API without a Facebook App?

I want to post updates automatically to my facebook page from my PHP website.
Facebook seems to force me to create an App where users can login and then post stuff.
But I don´t need all that stuff, I just want to post to the facebook page directly via code.
I went "Ok, I´ll create an App", but now for them to give my app the needed permissions, they want me to give them a login so they can test my app and stuff ... Is there no simple way to just autopost something to my own Facebook page?

Invite Facebook's friends from own website

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

Facebook like button and OAuth Access

I am connecting to the Facebook API using HybridAuth on the server side (backend is written in PHP). This is for a SaaS publishing application that is hosted on our servers. I understand the mechanics of OAuth and that once I accquire the appropriate permissions from the user, I can write and read from the Open Graph API, which in theory will allow me to do almost anything.
The problem is that I would like to use some of Facebook's social plugins. In particular, I would like to implement the like button so that it automatically appears for each blog post, article and page.
The problem is that the like button and the various Facebook plugins require an app_id. I would prefer not requiring users to add the developer app to their account and creating an app to get an app_id as it can be a confusing process for non-developers.
Is there anyway we can create or retrieve an app_id from open graph (which we can store and use to generate the like buttons and other facebook widgets)?
With the migrations, I understand that each liked URL will not have it's own page. Once the user clicks a like button on your site, he automatically likes your page. However, let's say I have a page called http://www.mystore.com/products/some-awesome-product and there are other similiar pages, all with a like button. Is it possible that when clicking like, the user automatically likes our Facebook page, but when an item is published in their news feed for the like, the URL links to that specific product? Effectively, is there a way for users to like multiple pages from my site?
Update: It looks like we can generate app_ids programmatically with the create application API in the legacy REST API. However, this does not seem to be an option with the graph API.
Seems like we cannot programatically create an app_id for an account. This is not an issue, as we will just create a small guide to guide our users through creating an app and submitting the app_id to us using a form. Not perfect, but should be easy to implement.
As for URLs, liking something will not automatically like your Facebook page. If href is blank, the current page will be liked. If you set your facebook page in the href parameter, then your facebook page will be liked.

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.

Add Facebook Application to a fan page through API

Is there a way to add a facebook application to a tab in a fan page through API?
I have developed an app.When a user go to the app I need to display the admin fan pages of the user and ask him to select a page.When a user select a page and click "Add" button, I want to add application into a tab in selected fanpage.
I know how to get admin fan pages of the user using api.And also I know to detect when my app is running through a fanpage using 'signed request'.
So can anyone please tell me is there a way to add a facebook application to a fan page through API?
Found the solution
It just a straightforward process.I Just had to use this link(Doesn't need to call api)
When a user access the app(Not through a fanpage.Can detect when a app is running through a fanpage using 'signed request'.) user should derected to this link,
<script>
top.location = 'http://www.facebook.com/add.php?api_key=YOUR_APP_ID&pages=1';
</script>
It will display the facebook window with all admin pages of the user asking him to add app into a tab in his fan page.
actually, it appears there is a way by using the fb api, which saves the round trip to facebook and back.
the answer is awkwardly situated in the page object page reference (under "tabs"->create)
https://developers.facebook.com/docs/reference/api/page/
you need to make this kind of call to the api:
$appId = YOUR_APP_ID;
$pageId = THE_PAGE_TO_ADD_TO;
$apiUrl = "/".$pageId."/tabs";
$addedToPage = $this->facebook->api($apiUrl, "post", array("app_id"=>$appId));
good luck!

Categories