Manage Facebook Page - Add sections Tabs - php

We want to manage a facebook page using php/mysql and php-facebook-sdk, we have a site with the sections below: About Us , Services, Projects, Contact Us.Each section contains data. We want to add programmatically a tabs sections called About Us , Services, Projects, Contact Us in the Facebook page related included a links to the site. We understand the creation of application on Facebook first, but the question is how proceed to use the facebook php-sdk or api's(graph api) related to do that? or any tutorials exist for this reason?how proceed to add new tabs with titles, and add data using php/mysql with this data?
We want to do exactly like the tabs in the page below:
https://www.facebook.com/doreuk
(About Dore, Contact us,....)
Thank you for your suggestions...

A facebook tab is a page on your (own) server framed in by facebook. So create a html page, make it available under http and https. Next follow the instruction in this tutorial:
https://developers.facebook.com/docs/appsonfacebook/pagetabs/
create your page
create a new app developers.facebook.com
choose page tab
install your app by visting: https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
You don't need to use the facebook php-sdk or api's(graph api) to do this!

Related

Cordova-how to create links for only work in phonegap app?

how to create links for only work in phonegap app,when user extract app and see links and open in any browser to disable that links in any browser .how to create links working only through phonegap app.
For example: products
You can create custom url scheme for your application. for example your custom url scheme can be myapp:// and when user click a link like myapp://test.html, page open in your app. Please see the two Corodva plugins:
Custom-URL-scheme
LaunchMyApp-PhoneGap-Plugin

create backend API for Mobile Apps using wordpress

i have the latest installation of wordpress.
what i want to do is this:
Suppose i have a site at www.mysite.com and it is running wordpress
now i want to create a page called userAuth.php so the url will be www.mysite.com/myapp/userAuth.php when this page is open the user is presented with a login form.
On successful authentication of the use he is presented with another form userData.php where he has fields such name,sname,no etc where he can enter the details and save them.
Then when on my mobile app i get the data form www.mysite.com/myapp/servData.php i will get the data the user has entered.
i know how to code the above mentioned interface in PHP but i was wondering is there a plugin or some other hack in WordPress that i can use for my api needs?
You can use JSON-API WordPress plugin for creating the web-services that can be used for fetching the data from Wordpress by mobile app.
And the plugin will provide the webservice url something like that :
www.mysite.com/api/servicename
Plugin link : https://wordpress.org/plugins/json-api/
Hope it helps you some extent.

Import Facebook posts and not just embed them

I am looking at importing Facebook posts and not just embedding a Facebook iframe in the page. I want to be able to get the SEO benefits of having my website news page updated all the time by my Facebook page and I believe if I just use the Facebook embed code this wont work to improve it ?. Does anyone know of a tutorial or plugin for importing posts / pics into a php based website ?.
Thanks
Iain :-)
For this you may want to look at their graph api, https://developers.facebook.com/docs/reference/api/post/
https://developers.facebook.com/blog/post/490/
you need to authenticate to facebook and retrieve the post using the api
or you can use their plugin to display the fanpage posts on your website, it's much simpler.
Social2blog ( http://www.social2blog.com/ ) import facebook posts in your blog, with a creation of Wordpress post and then with real SEO benefits. Furthermore Social2blog permit to decide if you want to point the canonical url to Facebook post. The problem with Social2blog is that it works only with facebook page. Otherwise you can create your own php script, please refer to:
How to pull in Facebook Page posts as blog posts to WordPress?

What's up with Facebook Pages why is there fragmentation

I'm trying to figure out why Facebook is creating fragmentation with its pages. I really don't understand it. Also is there anything that can be done about this.
Here is a perfect example I have my Facebook company page for "Scoreoid" (http://www.facebook.com/pages/Scoreoid/245182948843019) this has my content wall post's, photos ect..
Then I have this page which I guess is only connected to the Scoreoid website which is new and was automatically done http://www.facebook.com/pages/Scoreoid-the-ultimate-game-platform-for-developers/269861406410210
This is the page for the Scoreoid site which has 130 likes but of course on Facebook it only shows 15 another question either way why is there two pages why can't everything be connected to one page.
All this does is create fragmentation which is noting but bad user experiences.
It would max sense to have everything directed to the Facebook main page. Of course I have other questions for which do I run advertising on which should I update with content?
I've already answered you here two weeks ago:
Facebook Likes not showing on Facebook page but show up on site
Facebook pages like counts are NOT THE SAME as like counts for a web site. They cannot be joined by Facebook as they are two separate IDs. You can have your parsing scripts add together the two like counts yourself.
This has been my experience. If you add the open graph meta tags (og:url, og:image, og:type, etc.) Facebook will create a "facebook page", but this page will only be accessable by you. This is the message that facebook will show on this open graph page: http://snag.gy/z9UfG.jpg
If besides this you create another page then it will not be linked with this page. I recommend you use the page you created as that page is accessible by everyone.
If this is not your case then please clarify.

Facebook share button for website

i need to use share button in my website. Different share button for different products.. mostly we need to use like this,
http://www.facebook.com/sharer.php?
In the above url what are all the parameters we need to pass for showing it as our website, product and some image of that product in that share page...
You asked what parameters you need to pass it to have it show up as your site, etc. The like button uses its own Graph Protocol API to do this, it essentially makes your page a facebook page and can be read as such. It's written like XML and defines things such as the thumbnail you want to show as your picture, the shortname of the site, etc. Go to developers.facebook.com to read all about the facebook API and app development and integrating into your webpage, etc.
you cand use this on github to share content on social media (includes facebook) and make your custom button!
You can use Facebook Like also. It performs the same as the Facebook share now appearing in your Facebook newsfeed with thumbnail, or
You can use some plugins like add this or you can use the following link:
<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

Categories