Post facebook ad using facebook api? - facebook

I am trying to post facebook ads using the developers API.
Currently I am using the Power editor to enter the ad details and entering the details of the ad like so.
I would like to automate the above process somewhat with the API.
Currently I have been able to POST to my page as my page using the graph api explorer (by posting to /<MY PAGE>/links). I am looking for a similar such way to post ads, ideally a demo from the API explorer would be much appreciated.

Related

Hidden comment retrieving from plugin facebookcomment using API Graph facebook

There is facebook Comments Plugin in one page of our client. I get all comments through fb.subcribe events and store them in our database.
Now We have to hide those comments, I have to go to the developers tool to make moderation because I am only the administrator that the client has added.
My question is:
Is there any way to use API facebook Graph to hide the comment? Does someone already make this action by API graph facebook.
Thanks a lot

Facebook marketing api insights can be used in graph api explorer

How do you see the Facebook marketing api insights in graph api explorer? Could I explain?
Can you get the output as you see in this link? Marketing Api Sample
I had a answer,I will expalin here
The Following Links are very usefull For this question
https://developers.facebook.com/docs/marketing-api/insights-api
https://developers.facebook.com/docs/marketing-api/insights/fields/v2.10
https://developers.facebook.com/docs/marketing-api/reference/ad-keyword-stats
https://developers.facebook.com/docs/marketing-api/insights/v2.10
https://developers.facebook.com/docs/marketing-api/insights/fields/v2.10
https://developers.facebook.com/docs/marketing-api/tracking-specs/v2.10
https://developers.facebook.com/docs/marketing-api/insights/parameters/v2.10
FB is not defined javascript
Go to
https://developer.facebook.com and Create App and Left side nav bar to create marketing api and manage this are above tools. Any doubts comments here..
base url can be like this
https://graph.facebook.com/v3.2/me/adaccounts?fields=ads,campaigns,adsets
you can expand any fields with subfields
if you want insights of ads you can replace ads with
ads{insights{reach,impressions,frequency, unique_clicks, actions, spend, cpc}}
and so on....

post to friends feed facebook without feed dialog

I'm creating an app using Facebook API in cascades BB 10. I have done the login part in C++ using qnetwork manager. I was able to post to my wall using HTTP post with graph API. I want to post to my friends wall. After searching, I found that it is not possible using graph API but only with feed dialog. As I'm not using any SDK, is there any other option for posting to friends wall?
No. But some other options (since your req could be batch post) you may like, such as:
You can post feed/photo on the user's wall and tag the friend/s in that post using mention tagging or place parameter
Read more about tagging on the developers site here: Tagging

Get Facebook wall data to web portal

I have web portal. I need to somehow get all Facebook wall posts from just one specific user or group( that represents my web portal). I need to have wall posts available on my web portal for further processing.
I will be also needing an option for posting messages from web portal to FB user/group wall.
I haven`t worked with FB API until now, so any materials, tutorials that can lead me in right direction would be of great help.
Can this be done without creating Facebook application?
Thank you
No,
Facebook just like that does not share its user information.
you will have to create an app on facebook to authorize urself,and on your web portal you will have to sek users permission before getting any user info.
craete facebook app here https://developers.facebook.com/apps
You can choose between javascript sdk and graph api on how you want to get user data.
You can use publish_stream permisiion to get the post on user wall.
Can this be done without creating Facebook application?
NO
Tutorials and materials:
Graph API
Samples & How-Tos
Google, but I would be careful here. Try to search for updated tutorials (written or updated on 2011)
I used this http://neosmart.de/social-media/facebook-wall its fb.wall plugin into jQuery .js library. It easy and can be edited symply via CSS

Streaming Facebook Pages Wall (not just the pages posts)

I have looked on 100 forums looking for a simple answer for how to stream every post on a Facebook page's wall (not using the like box for just the pages posts, but everyone's posts). I am the admin of the page and I am already using the like box for my posts so I understand that, however the developer pages of Facebook are too confusing for such a simple task. I will be inserting the stream into an HTML page which will be hosted on www.1and1.com so it can handle most, if not all code.
I know it is a lot to ask but is there evem someplace online that will offer plain step-by-step instructions for my specific needs?
If the social plugins they make available aren't sufficient, you could just pull in the feed with the Facebook graph api using the javascript sdk (easiest) or there is probably an SDK for whatever programming language you know. For example, you can see a list of posts on the coca cola page using the Facebook graph explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=cocacola%2Ffeed
The /page/feed method needs an access token, but you can use the graph explorer to get an offline_access token that you can use to pull the data in. This may eliminate javascript sdk usage though unless you want to first prompt users to authenticate your application. But otherwise you would just parse the json feed that is returned in the url indicated in the graph explorer (and add your access_token to the end of the url).
Here is a good PHP tutorial on how to display a groups feed on a web page. It would be just as easy to display the posts from a page (since you are the admin)
Just replace the group ID with the page ID. Here is a link to the feed for the Facebook Platform feed graph api results. More info on FB Pages here.