Facebook Platform lets developers integrate their apps directly into the Facebook social networking service. Use this tag for questions which may arise when developing FOR Facebook. This tag is NOT for support questions about using the Facebook website or the official Facebook app.

learn more… | top users | synonyms

1
vote
0answers
32 views

Spring controller for login using Facebook or email

I've got a spring controller class which handles the user logins. I've got two endpoints: /user/facebook /user/email You ...
2
votes
1answer
26 views

Sort Facebook Messenger contacts by idle time

I wrote a UserScript that auto-sorts contacts by offline time using the MutationObserver API. I tried to make it as DRY as I could think, and I also tried to make my code as straight-forward as ...
4
votes
3answers
162 views

Facebook helper class

This is my initial Facebook helper class. Is this code efficient or is there a way to improve this code? ...
7
votes
2answers
59 views

Querying Facebook for details of a user's OAuth token

This class exposes the public method getAuthToken which takes a user's Facebook OAuth token as an input parameter and queries Facebook for information about it - ...
8
votes
4answers
957 views

API method to validate Facebook OAuth token

I am new to Java / OOP and I'm concerned that I have a method which is doing far too much "stuff" - but I don't easily see how it can be shortened in a way which is not contrived / arbitrary. This is ...
3
votes
1answer
265 views

Facebook crawler redirect to force displaying own opengraph meta-tags

For my website, I use the opengraph to send the right data to the crawler. On the top of all pages on my website, I include the opengraph-script, like this: ...
2
votes
0answers
212 views

PHP code to connect to Facebook API

I was given a tech test for a prospective job a small game that uses Facebook API to connect a user then to guess the image. The feedback from the employer was good but they said they had to modify ...
4
votes
0answers
145 views

Finding Facebook Friends on app, and not on app

This code gets all of a user's Facebook friends who use our app and returns a dictionary with keys that are their id's in our database and values that are a default connection level. The code should ...
2
votes
1answer
793 views

Getting Facebook app requests

I have a JSON response from the Facebook API, which contains the app requests of certain Facebook apps via FB.API('/me/apprequests') (using Graph API 2.0, Facebook ...
2
votes
1answer
54 views

Efficiently consolidating an array of objects

In my program, I'm getting Facebook objects and using temp to display on a separate screen how many unread messages they have. However, we have since decided to ...
2
votes
1answer
464 views

Is this the right way to handle Exceptions in PHP?

I'm using the function countLikes() to fetch URLs' Likes count from the Facebook API. ...
7
votes
1answer
2k views

Getting all likes from a specific user on a news wall with fewer graph API calls

Right now, my solution counting likes of a specific user is Starting a recursive call on the "/{user-id}/posts" edge Iterate through all posts On each post iterate through each like on the likes ...
3
votes
0answers
1k views

Using RequireJS correctly for social plugins

I'm a beginner in JavaScript and lately I've been trying things with RequireJS, I'd like to get some feedback on how good/poor my code is and in what ways it can be improved. My example below is just ...
1
vote
1answer
103 views

Follow up: Python class for Facebook

This is a follow-up post I have taken some of the suggestions there and have made some changes from my side too. I think it looks better, but please look at it and lemme know if you think any more ...
1
vote
2answers
1k views

Classes for Facebook graph API and Twitter access

Given below is code which I wrote to provide an easy access to Facebook graph API. ...
3
votes
2answers
64 views

Search/match algorithm between 2 vectors [closed]

I have 2 vectors of Facebook-like pages which are represented by an ID from 2 different users. I want to verify the number of liked pages that are similar between these 2 users. This is my algorithm ...
1
vote
1answer
2k views

Facebook OAuth in WPF

I am developing a WPF application that requires me to get an Access Token from Facebook using oAuth. After much searching online, I came to the following conclusions: OAuth must be done in a browser ...
0
votes
3answers
163 views

Support for sharing stories on Facebook

Is there a way to write this code block cleaner and more readable? ...
2
votes
2answers
154 views

Javascript coding wager

I have two scripts written by my co-workers for auto-filling a form with information from the Facebook graph-api. I am trying to figure out which has been coded in a more efficient style? This is the ...
2
votes
1answer
155 views

Counting Facebook and Twitter Reactions

I wrote / modified two scripts to count Facebook and Twitter reactions. Anything I can do to improve these? Count Facebook Reactions ...
2
votes
2answers
3k views

Getting Facebook comments count via FQL

I'm currently getting the Facebook comments count over a query request to the Facbeook api. The problem is, there are about 15 queries on each site which makes it real slow to load (up to 6 seconds) ...
3
votes
1answer
206 views

Is there any way to shorten up this Facebook API call?

Right now I am working on an AJAX call that grabs a random photo that a Facebook user is tagged in and then grabs the large source for it. Is there any way to speed this up or at least distill the ...
1
vote
1answer
127 views

Displaying a user's social media information

This is for a page where it displays some social media information for that user. I would like to improve the following code that I posted below. It does the job perfectly, but I just feel like it ...
1
vote
1answer
179 views

CyberFaze app for Facebook

I had an efficiency problem like I thought and I didn't have the best solution here. My solution was \$O(n)\$ and directly a more experienced member told me a solution that is \$O(1)\$, that only ...