Questions tagged [facebook-node-sdk]

20 questions
20
votes
2 answers

Automatic post to my facebook page from Node.js server

I have a Node.js server running a social network site and I also have a facebook page for that site. For certain actions performed by users on my site, I want to post details on the facebook page of my app. I referred to Thuzi facebook node sdk…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
3
votes
1 answer

Facebook Connect with NodeJS

I am creating a web app with express.js and angular,js, where the client authenticates via facebook. For facebook authentication I use facebook-node-sdk to connect with facebook and retrieve details. The code works well when authentication is made…
3
votes
2 answers

Facebook access token not accepted to Open Graph using Node.js facebook-node-sdk

Posting an Open Graph action using the Node.js facebook-node-sdk module gives me {"error": "An active access token must be used to query information about the current user."}. var FB = require( 'fb' ) var path = '/me?' + namespace + ':' +…
jab
  • 4,053
  • 3
  • 33
  • 40
2
votes
0 answers

Ads creative post was created by an app that is in development mode. It must be in public to create this ad in facebook advertising

I am trying to do ad for messenger_sponsored_message in fb but getting error like this: Ads creative post was created by an app that is in development mode. It must be in public to create this ad.
Jay Suchak
  • 172
  • 1
  • 10
2
votes
2 answers

Posting multiple Photos to one post

I have been trying to create an application which needs multiple photos to be attached to one post. These are the following attempts i tried, First i used facebook-node-sdk which JS SDK to achieve different functionality, but Official Js Sdk does't…
2
votes
2 answers

Bluebird.js in Node and asynchronous api calls

So I'm trying to build my first webapp with Facebook integration (using facebook-node-sdk). I have it making simple calls to the api, but now it's time to put this all in a simple server and make the calls upon request (this isn't going to be the…
Charlie G
  • 814
  • 9
  • 22
1
vote
0 answers

Can't create AdCreative using facebook-nodejs-business-sdk module in node js

I am trying upload image using facebook-nodejs-business-sdk. I am getting error which is given below: { error: { message: 'Invalid parameter', type: 'OAuthException', code: 100, error_subcode: 1443186, …
1
vote
0 answers

I am trying to send facebook custom app-events in node js using facebook graph api

basically I am doing a post request at https://graph.facebook.com/{app_id}/activities . As mentioned in docs. The event is getting displayed in facebook analytics events dashboard , but the unique Users and count field is getting displayed as…
1
vote
3 answers

Asynchronous method in while loop with Graph API paged

I'm using facebook node sdk for node.js to get information from a facebook user such as their feed and friends, which is working fine. However I'm having an issue where the returned data is paged - I need to build something in recursive mode. Let me…
1
vote
1 answer

Get user access token facebook access token in node

I'm trying to make a call to the Facebook Graph API, I'm using node & express for this, it's my first time using them, when I make a call to the API I get the error below, how can I get the access token or set it so the call goes through ? message:…
1
vote
0 answers

How to respect RESTful with Data synchronized from Facebook

I’m trying to build a web-app with integration of some Facebook data. (Facebook Events in particular). I would like to know what are the best practices/recommandations to handle synchronization. Here is my current thought: In my database, I need to…
0
votes
1 answer

Filtering results from edge /[pageId]/posts

I would like to show the latest N Facebook posts on my website. I am using this simple code: var FB = require('fb') FB.api('/flourandfire/posts', 'get', { fields: [ 'message', 'picture' ], access_token:…
Merc
  • 16,277
  • 18
  • 79
  • 122
0
votes
2 answers

Response object is not defined when passed in a function

I am using Facebook Graph NodeJS API to fetch user_posts. The response has pagination and therefore I need to loop over the response to fetch all the posts. I am using following route to fetch facebook posts and I am looping over pagination using…
Vaibhav Agarwal
  • 975
  • 1
  • 7
  • 22
0
votes
1 answer

Renew facebook access token from Node

In my Node application, I store in the DB a long-lived user facebook access token and run a cron periodically. There's a way to renew that access token after the 60 days without asking the user to renew it in my mobile app? I use fbgraph node…
0
votes
2 answers

How to capture results from end of FOR loop with Nested/Dependent APIs calls in Node JS

This is my first JavaScript & Node project and I am stuck…. I am trying to call a REST API that returns a set of Post IDs... and based on the set of retrieved IDs I am trying to call another API that returns details for each ID from the first API.…
1
2