Synchronize data with facebook and twitter - php

I would like to know how i would be able to synchronize data (news and events) with a facebook page.
For example, I have a web site called abc.com (with a news and events section), and a facebook page called facebook.com/abc. I would like to know how i could synchronize the news and events from abc.com with facebook.com/abc. Whenever the administrator manages news and events, the data should automatically update itself on its facebook page.
Could anyone kindly guide me or even post some URL's that would help me out.

Use any of the following services,
ping.fm
hellotxt
They are providing API for that.. From that, you can update many social networking sites at once.
Just register with any of these services and the API to update the status at the end of the script where u add/upload things or stuffs..

Related

Facebook App Insights don't reflect changes at likes and comments

I'm trying to develop a Facebook App that works using Unity3D as front-end but using a PHP Web server to do the Facebook request saving the private key there.
I tested various things like uploading photos and comments an then it get reflected the new App Insigths of the App as Stories Published.
The thing I can't achieve is to see the Likes and Comments of those Stories, it remains 0.
¿There is something that I don't understand about the Likes/Comments there, or I'm doing something bad?
Thank you all.
P.D: Sorry about my English ^^'
Edit:
I can't provide example code of what i've done but I can explain it.
Actually my front-end do get requests to a backend PHP server that do the requests to Facebook.
When a user want to log in the server return the login url in a string and the front-end launches a Internet navigator (in my case is Google Chrome).
The callback url given to Facebook go to a site that closes automatically the navigator and putting in first plane my front-end.
From there you can do the request to the back-end to publish stories in Facebook and then log-out
Actually this is what my application do and it works. The only problem is that the comments and likes that those stories got are not reflected in the App Insights section.

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.

PHP posting on page wall

I have a website where users can post jobs for free. How can I link these posts to a facebook page about this website? I don't want the users to login to fb.
At this moment I post them to twitter and then using selective tweets to post them on my page. But selective tweets is not able to post logo's specific for that job.
I created a fb app. Did not select anything just gave it a name and got an appID and appSecret. I dont now what to select in "Select how your app integrates with Facebook". Becouse it is not a mobile app and it is not a website with fb login.
Kind regards.
you can use share on facebook facility of facebook ,from http://developer.facebook.com.
you can easily add this to your website.
have fun!
You can do this easily via MYSQL and PHP, depending on how your current site is setup. What i would do is store the jobs into a separate table while saving, like this
(table) Facebook
pageid //numerical value
header //job title
message //job description
So that you can use it for the next part.
Create an application via Facebook and give it authentication to users and your Facebook page.
by adding this application to your page you can then call something like :
$facebook->set_user($user, $session_key);
$facebook->api_client->stream_publish($item['header'], $item['message'], $item['pageid']);
Using your keys from facebook.
Then you can run a Cron that updates every x minutes, and after it has posted it, in an array, you can clear the table for the next row of jobs.
Let me know where you are on this and ill try to help as much as possible.

Add Facebook status feed to profile page of site members

I have a Digg style site, currently each member has a profile page where they add links to their projects and social networking profiles.
I am trying to implement a feature that allows the member to display the last "X" number of status updates to their Facebook wall.
I have been going through the Facebook API FAQs, but unclear on how to best implement this.
Does anyone know a good starting point for writing the API call or where I should look for examples?
My site currently runs on PHP.
Here's a set of point to get you started:
Create an application
Download the Facebook PHP-SDK
Acquire the read_stream,offline_access permissions (more about this here)
Save the user id AND the access_token to your DB.
Next time you want to retrieve the user's wall posts use:
$feed = $facebook->api("/PROFILE_ID/feed", "GET", array("access_token" => "XXXX"));
Always try your Facebook application locally before implementing it on a live website (see link on point 3).

How to publish photoalbums to Facebook from website

I'm currently working on a website backend which allows the administrator to manage photoalbums.
Besides, we have a Facebook page and we'd like to let the website and FB-page interact between each other.
The pictures are stored on the server the backend is hosted on. Now I'd like to know if it's possible, using the Facebook API, to publish a link to the photoalbum along with a thumbnail to the FB-page?
Untill now I've only worked with the FB API to put some Like buttons on my website, so I don't know if this is possible.

Categories