facebook-nodejs | Nodejs module for Facebook api | REST library
kandi X-RAY | facebook-nodejs Summary
kandi X-RAY | facebook-nodejs Summary
A simple module for querying Facebook graph api and fql.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of facebook-nodejs
facebook-nodejs Key Features
facebook-nodejs Examples and Code Snippets
Community Discussions
Trending Discussions on facebook-nodejs
QUESTION
I am developing an application to consume the facebook api using the package "facebook-nodejs-business-sdk" in version v9.0.
I'm looking for a method to get interests, but I can't find it.
I looked in the examples available in the package, but I can't find anything that allows me to search the search node.
Using the graph api explorer I can see that the code to make these calls with javascript is as follows:
...ANSWER
Answered 2021-Jan-11 at 13:57I didn't find any reference to this in the SDK but seems you could call the targeting search api by yourself with the following example:
QUESTION
I'm using the node.js facebook sdk facebook-nodejs-business-sdk in a firebase function to update Ad Sets targeting parameter with the custom_locations and have tried many different ways to update it, but none have worked. I've used the object TargetingGeoLocationCustomLocation from the API and also tried adding the location as an object directly. I've also tried sending the latitude/longitude as a string, a float, a parseFloat string and none seem to have any effect. If I try it with no custom_locations, it goes through, so I don't think its anything to do with the setup of the API. Here's the last code I've attempted:
...ANSWER
Answered 2020-Sep-28 at 12:33From your code, it seems that nothing is wrong maybe post what you have on customLocations too in order to see which area's are you targeting since I know that you need to have a certain minimal people in your targeting zones.
If your targeting audience is too small, for example a specific interest in a too small or little populated area, you cannot create the targeting.
I would suggest you to try using other interests to broaden the audience and see if it still returns the same error. You can find in the documentation that some audience types require at least 20 people or more.
QUESTION
I'm using the NodeJS SDK to create Campaigns, upload creatives and then create AdSet and Ads.
While creating an AdSet, I run into issues configuring my Targeting object.
Consider the following:
...ANSWER
Answered 2020-Aug-17 at 20:58I realised that the documentation on the Targeting
and AdSet
objects relationship is wrong.
It says here to create a Targeting
object and pass it to the AdSet
object for the PHP and JAVA SDKs, like this for example
QUESTION
I'm building a system to automatically ingest date from the Facebook API. I can easily get campaign details such as CPC, CPM, Reach, etc. However, now I'd like to grab reach demographic information such as this one below:
I believe that it does have something to do with Insights API, however, I can't seem to find any sort of details on the insights docs: https://developers.facebook.com/docs/marketing-api/reference/ad-campaign-group/insights/
UPDATE
I did see eventually that two possibly useful params in that list are age and gender. In my cloud function I'm already grabbing campaign insights using this:
...ANSWER
Answered 2019-Oct-31 at 07:18You need to add the breakdowns field to params parameter of this function rather than to the fields parameter to this function. This is taken from Facebook's example (https://github.com/facebook/facebook-nodejs-business-sdk/blob/3c0785aba14f44ba52434e66bb80ed410a6ca368/examples/ads_insights_edge_ad_campaign_insights.js)
QUESTION
I have the facebook application with approved ads_read
, manage_pages
ads_management
, business_management
and Ads Management Standard Access
permissions.
I can create Ad campaign, ad set and can upload asset to Facebook via Facebook Marketing API.
But when I try to create ad creative, with /adcreatives
request, I get Error with message:
(#3) Application does not have the capability to make this API call.
The example of curl
request:
ANSWER
Answered 2019-Jun-03 at 19:04I believe your input is malformed (although the returned errors from FB usually never indicate as much).
The main issue that I see is that the creative information is not being passed through the object_story_spec
parameter. The type of creative you are making is passed in through this object along with the necessary parameters, which would be photo_data
in your case.
QUESTION
I am trying to integrate facebook market-APIs into my application lets say Custom Audience from the documentation I can see the only method to create and remove users, Is there any method where we can get the list of users that were added to the Custom Audience?
On googling about this, I found this link, which states we cant get the users list from the Custom Audience. But this was answered in 2013, Is this limitation still exists?
The code that I am using to create a user in Custom Audience is
...ANSWER
Answered 2017-Dec-13 at 17:00Is there any method where we can get the list of users that were added to the Custom Audience?
Nope.
Facebook hashed data. And can't give.
You can save all sent data in Data Base. (Duplicate auditories in u machine).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install facebook-nodejs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page