What type of application to choose - facebook

I want to create facebook application that will allow to insert some data from my site to user's profile. User can choose to set up application. The users enters his ID on my site and when user's profile is viewed there is block of data loaded from my site (specified to the ID).
Is this possible to create such application with facebook ? If no the what type of application is closest to this? My site users want to display their profiles from my site inside their facebook profiles , so facebook friends can see this.

If I understand you correctly you want to add some additional data on the users Facebook profile, something like if Stackoverflow would add their flair on the Facebook profile.
I don't think this is possible, but you have a few alternatives:
Make the user post out a link to his profile on your site to his Facebook Wall, more details here.
Integrate your site to the new Open Graph Objects. Open Graph Objects will create a box on the users profile for your application which shows the users activity in your application. You should check out the demos and documentation for more information about this.
The users enters his ID on my site and when user's profile is viewed there is block of data loaded from my site
You can't do anything like this, you will need to use the authentication flow provided by Facebook in order to get access to the Facebook user data and then tie up the Facebook user to "your user", see documentation.
When it comes to what type of app you should create, there is basically only one type of app with some different options. But you should focus on the "Facebook for websites" documentation.

Related

Facebook App Review Page Public Content got rejected due to bad screencast

I want to create a website where users can like one-another's Facebook page posts and get points. After getting points, they can use these points to add their own Facebook page post. When users want to add their post from their page, they select their page and all their posts are displayed so that they can easily choose which post to add. For this purpose, I made use of the Page Public Content Access feature. However, when I submit my app for review I am getting the following:
Not Approved
Your screencast doesn't show how the use of this permission directly improves the user experience in your app. Unfortunately, we also weren't able to determine this from testing your app manually.
All permissions data must be visibly used within your app. We do not accept permission requests for data that you may decide to use later.
Please see our Examples page to learn more about making and submitting a successful screencast.
Learn more about testing permissions prior to approval.
but I can't find what is wrong with my submission. I would be glad if you can help. This is how my submission looks like:
Tell us how you're using this permission or feature
My app is for new starters who want their Facebook page to address greater audience. In this app, users can earn points liking posts of one-another's Facebook pages and use these points to advertise posts of their Facebook Pages. I use Page Public Content Access to help people choose post from all posts that they shared in their Facebook Page. They choose post that they want to display in my website and in this way this post addresses greater audience. First, user chooses his or her Facebook page which the post belongs to, then, all the posts of this Facebook Page are displayed using Page Public Content Access, so that they can choose easily. They choose the post that they want to add to website.
Demonstrate how your selected platforms will use this permission or feature
1.Click Login in Home page
2.Click Facebook and Login your Facebook
3.Confirm your Username
4.Click Facebook in navbar and Choose "Add Post"
5. Choose your page in which you shared the post
6. Click "Choose Post" which will display your posts where you can select the post which you want to add to the website
7. Choose 10 Points and click Add Post
MY SCREENCAST VIDEO:
https://youtu.be/cFTXz8o5cqo
EDIT: I am using page access token:
PICTURE SHOWING THAT I AM USING PAGE ACCESS TOKEN

Restrict facebook app from accessing user's friends list

I am using facebook to login to my website. The website does not need any information about the facebook user's friends' list. I am interested only in the user's general information.
https://developers.facebook.com/docs/reference/login/public-profile-and-friend-list/ shows the friend list also as the minimum information shared by Facebook.
Hence wanted to check if there is any way to restrict the user friend list information from being passed on from facebook to my application?
No, when a user authorize an application the minimum data shared is it's basic information and friend list.
Unfortunately you cannot change this.
Official documentation:
When someone connects with an app using Facebook Login, the app can
access their public profile and friend list, the pieces of information
that are visible to everyone. Each other piece of information that
someone adds to their Facebook profile is secured behind permissions.
Source: Facebook

Facebook get user id

I am making a simple contest on Facebook which is a form to fill in.
I would like to add a mechanism with share options.
You will win another chance for each friend who will click on the back link.
Technically i wish to add to the shared url the user id to add 1 chance for him in my database (sharing options will appear after the form)
So i need the user id but i don't want to display the FB popup "accept this application" before launching my app. Is it possible?
If not, do you have an id or online to do it with open graph and all that stuff?
There is no way to get the User-/Facebook-ID of the user without login/authorization. The signed request variable only presents basic infos if the user is not logged in (like status, admin status, locale, ...).
So, in order to get the User ID you have to authorize the user, i recommend the JavaScript SDK for this:
https://developers.facebook.com/docs/howtos/login/getting-started/
This is against the Facebook Page Terms.
You can not have a contest where sharing is considered a entry in a contest.
Follow this link and look at Section III.E.3 for details
https://www.facebook.com/page_guidelines.php

What should Add Data to Profile URL point to? Where will it be shown to the users?

Two questions about the "Add Data to Profile URL" configuration option in the new enhanced auth dialog already exist, but sadly they do not have complete answers. Here are the questions for reference :
Open Graph Beta: Add Data to Profile URL
How to configure 'Add Data to Profile URL' in Auth Dialog?
I have a website which allows users to login with FB credentials. I intend to use open graph publish_actions feature for some of the user actions on my website. I am configuring the new enhanced auth dialog and am unable to understand the configuration option Add Data to Profile URL.
My Questions :
What should this URL point to? -- Is it a page on my website? Is it a special App page that Facebook makes available? Will Facebook ever fetch this page and parse the contents to be displayed somewhere? The documentation on this is very vague -- It says "The new user flow URL for your app. This URL should point to a URL that expedites for engagement and action publishing. See the Add Data to Profile section below.". I do not understand what this new user flow URL is.. ! The section below doesn't say much more either
Where will this URL be shown to users - both user already using my app and their friends who are not yet using my app? Will this be displayed in the news_feed stories or the Timeline? If so will authenticated referrals kick in when the user clicks on this link?
The documentation says that if this configuration option is set then the app will get a Perforated Unit and Add to My Timeline Link -- Where will these two things appear -- in the aggregations shown on timelines of users of my app? Will I get these if I set the option to any value (like my website homepage) or should it point to a page with specific <og:xxx> tags?. The screen shots are isolated ones and I do not understand where they will appear on the user's profile/timeline.
I have been reading the documentation repeatedly but I do not understand this specific section. Any help is greatly appreciated.
Thank you.

Login with facebook and storing important user information

The facebook "wave" has finally hit me and I see that it's now time to integrate the wonders of the Facebook API into my site. I'm a little worried about implementing a "Login with Facebook" button because my site stores information about each user, and I'm not sure whether or not the facebook login system will also store said information. Any user who registers to my site has the ability to "like" certain pages that were found while browsing the site, and the categories of each page the user likes is stored and linked to his username.
If the user were to "login with facebook" however, and thus skip my registration page, would the information about categories still be saved?
Even looking at StackOverflow.com, I notice that all of my profile information etc. is being saved, but where? I used the login with facebook button so where exactly is my profile information being saved?
When you login with Facebook your site gets a Facebook ID and some other information (depending on what you ask for, but normally first name, last name, email address). You can then use the Facebook ID or email address to link it to an existing account in your system. If you can't find it, automatically create a new account with the details provided from Facebook.
You can use the Registration Social Plugin that facebook offer in order to get the data you need from the user while they register to your site using their facebook profile.
Also, as #JonGrant wrote, you can just use the api to get the needed information from facebook, just take into consideration that the more permissions you ask for, the less users will authorize your app.
Edit: Plugin now out of date, please refer to Facebook Login.
This was plugin removed as of API version 2.0. It will stop working
on July 30, 2015. Apps using this plugin should migrate to Facebook Login.
Source: facebook docs