How to share a photo on facebook wall from a website? - facebook

Hi guys I am working on a project:
the client's goal is to let user simply share the photo on their facebook wall with some fixed message. and the project is simply a website, no login is needed, user will just come to the machine and take a photo and click to share to facebook account, of course user will be required for permission to let my website to access his fb account.
so what should it be? simply the like button? or maybe something more tricky like using the Graph API? I am still reading on it at the moment since I am really new to Facebook. Please give some hint.
By the way I may use wordpress for my backend
Thanks!!

First you will need user to give your app permission to post on the wall, next after the photo is taken you will need to post it on user's wall using Graph API (you can find out how to do that here)

Related

Providing users with a way to detag their Facebook photos

I run a social membership club and my website users can log into my site with each having their own profile page.
On each of my user's profile pages, I want to display a list of photos which have been tagged with that user on Facebook. I know this part is possible.
The bit I am struggling with is giving each of my users the ability to 'untag' themselves in each photo of them that is displayed in the list. The 'untagging' should happen directly from my site. Is this possible and how could I go about doing this?
Hope someone can help/has ideas?
Unfortunately, there's no facbeook API that allows removal of photo tags at this time of writing.
Its not documented and I haven't tested this but I'd chance issuing a DELTE request to
/PHOTO_ID/tags/USER_ID
Worth a shot through the graph explorer anyway.

How to make wall posts made by users on app's facebook page

Is there anything I need to do to make posts users make on their wall via a custom ios application using it's own facebook app id, also appear on app's (facebook app it uses I mean) own facebook page?
I would expect this to appear automatically but it doesn't seem to be the case.
In order to read one's Facebook wall, you need the access token to authenticate reading. This will give you access to all non-public wall posts. From this, you can pass the newly posted content to your page through the feed action.
Reference: http://php-academy.blogspot.com/2011/04/how-to-post-from-facebook-app-to.html
Enjoy and good luck!

Which app do I need to display facebook feed?

I need to display the "wall posts" from Facebook page to another website's social media wall.
The problem is that I never used neither Facebook nor any other social networks and got no clues on how do they work. That's why I'm pretty confused with API and it's terms.
The API docs say that I need a pageId for the page I'd like to display and appId and appSecret to get an access token to the feed.
I understand how to get the token and how to parse the results - but what kind of Application do I need for that? Should I create a facebook profile and make an application that would generate me these app codes? Or ask a page's owner to do it?
I spent quite a time googling but it must be something too obvious to write about it in docs? Help please?
The administrator of the facebook page is the only one that has access to the posts on the page wall.
For the APP:
The application can be created in any facebook verified account - go to: https://developers.facebook.com/apps and create the new app - this will give you the app id and secret.
Use the Facebook SDK that you feel most comfortable with to develop the app.
For the wall posts: There are several Graph API requests for wall posts in the form of:
https://graph.facebook.com/[pageid]/[call] where [call] can be posts, statuses, feed, home. See http://facebook.stackoverflow.com/questions/6214535/what-is-the-difference-between-feed-posts-and-statuses-in-facebook-graph-api for details about each.
Using an access token (that you said you already know how to get) the administrator of the page will be able to call the above URLs and get the wall posts.
For the part with posting the info on another social media website you have to specify the exact environment where you want the wall posts to end up.

How to display my photo albums and photos that are in FB on my own website

I would like to display my photo albums and photos that are in FB on my own website. However everything I have tried requires an access token that I seem to only get if I login to FB. I don't want visitors to my site to have to login to FB to see my photos.
Is there a way to get this data and not require a login? I want to pull data from my own FB account. Or is there a different way to authenticate my access behind the scenes so visitors don't have to login, to see my photos?
Facebook has recently launched a way to share the album with public without having to Signin. Every album will have link below this key word Share this album with anyone by sending them this public link. Take a look at this HOW TO for more information.
EDIT: However, for embedding refer this SO which explains how to grant permanent access to your photo albums
Another option is using 8 photo restricted Facebook Photo Badge
Showzey seems to be working on liberating your photos and provides widgets.
Facebook has a badges page that has different options for embedding Facebook content onto your site. The photo badge should fit your criteria.
May be this method could help you guys.
You can do it through a public fan page or a business page.
I put this script together a while back: http://roughgiraffed.com/FBalbum/. Working on a more legit version - will post when complete.
You can combine galleria (open source javascript image gallery framework) with a plug-in to integrate with facebook.
You can find the links bellow:
http://galleria.io/
http://www.alexanderinteractive.com/blog/2012/03/display-facebook-photos-on-your-website-with-galleria/
I'm using this very nice plugin for Joomla. Take a look.

How to share score on facebook wall through Facebook Connect?

I have a game on my website and I want to share the score on wall facebook account wall. I have searched and found that it can be done with facebook connect, but through facebook connect I am able to share only URL of any page. So can anyone kindly help me and tell how share score and my custom message through facebook connect. Thanks
To make a custon message, you would need a Dialog. You can see about them in here:
Link 1
and
Link 2
The second link is an extension for what you want. Just fill the data you want/need about your highscore, and it will be ready to display!
It is not necessary to use a dialog. You can make a direct request to the facebook url using the open graph API.
Take a look