Questions tagged [facebook]

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.

Filter by
Sorted by
Tagged with
1
vote
0answers
18 views

Requests / Facebook API - Dealing with Errors

I work in marketing and I am currently trying to aggregate data for 50 facebook pages on the same Business Page. I have a loop ...
3
votes
1answer
86 views

Web scraping job postings from Facebook

I built a web scraper to pull a list of jobs on Facebook and other websites but want to break up the code into functions that I can reuse for other websites. This structure is working but I think it ...
4
votes
0answers
320 views

Fetching Facebook Places API [closed]

I am pretty new to Python as a frontend dev and I loved it, so I started to build a tool fetching the Facebook Places API. I don't know where to optimize it but I need you to take a look at my code ...
1
vote
1answer
281 views

Groups/Communities in Facebook snap dataset using networkx in python

I was using facebook dataset and making a graph on it. But was not been able to find different groups/communities in it. The code was using is this: ...
3
votes
1answer
139 views

Attaching Facebook messenger bot to all pages of the user logging in

I have to create open source code that allows a user to login to Facebook through an app and attaches that app's messenger bot to the user's pages. I have never written open source code before so I ...
2
votes
0answers
198 views

AngularJS application for working with the Facebook API (using the cordova-plugin-facebook4 plugin)

I'm creating an application with AngularJS, and packaging it up with the Phonegap build. I'm using the facebook API (phonegap cordova-plugin-facebook4) for user authentication and getting a user's ...
2
votes
2answers
276 views

Log in to Rails app using Facebook SDK

I have built a Rails app where users can login using Facebook. They have an account on the Rails app but do any authentication in it other than creating a session if they have logged into Facebook ...
2
votes
1answer
576 views

Rails5/Devise/Omniauth (Multiple Providers)

I spent the better part of the last two days getting this to work, but it finally is working, but it feels extremely redundant. I am following a belongs_to method ...
5
votes
1answer
175 views

Crawler for scraping and approving friend requests in Facebook

I've made a Facebook scraper using VBA in combination with selenium which is able to parse the name from friend request list. It is necessary to do one thing manually, though. After running this ...
2
votes
0answers
51 views

River Flood Warning System v2.1 - Those Pesky NoneTypes

Below is my River Flood Warning System version 2 build 1. After following the help and advice given for version 1 the whole program is looking and behaving much better. The original code would only ...
10
votes
1answer
477 views

River Flood Warning system in Python

This code represents my first real Python 3 program. It retrieves flood data from the NWS weather center for the river near my home and posts a warning to my Facebook page whenever certain flood ...
3
votes
0answers
775 views

Redirect to previous page using Passport Facebook strategy in Express

Somehow, I couldn't redirect the user back after its authentication. I was using successReturnToOrRedirect property, but it kept sending it back to ...
6
votes
2answers
969 views

Login with facebook, store data in MySQL, render profile and admin panel

I have an online catalog on which I need the customers to save their favorite products and shipping addresses. I want to manage the access with Facebook for security of all. I also need a section for ...
1
vote
0answers
67 views

Template for web pages using social plugins

I created a simple template for web pages that uses social plugins. The template consists of the html/php with jquery, and the necessary javascript to enable and use social plugins. The javascript ...
1
vote
0answers
597 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 can ...
2
votes
1answer
71 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
401 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
210 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
2k 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
1k 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
437 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 ...
3
votes
0answers
186 views

Finding Facebook Friends on app, and not on app [closed]

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
2k 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
108 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
1k 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. ...
9
votes
1answer
3k 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
2k 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
131 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
2k 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
67 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 ...
2
votes
1answer
3k 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
169 views

Support for sharing stories on Facebook

Is there a way to write this code block cleaner and more readable? ...
2
votes
2answers
184 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 ...
8
votes
2answers
6k views

D3 visualization of a Facebook friend graph

I've been learning Python for about a year and now I'm trying to improve my JavaScript. I wrote this simple d3 visualization that shows your Facebook friends as a force-directed graph. Here's a live ...
2
votes
1answer
242 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
229 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
137 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
196 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 ...