How to update carousel ad images through Facebook marketing api - facebook-graph-api

I am new Facebook marketing API.
We have carousel ads which are created manually through ad manager, but I have to update images of these ads periodically with new images.
No clue how to do that can someone give some ideas.
I tried updating object_story_spec for adcreative with new image hashes,receiving response as success but image hash is no being updated.

You cannot update the adcreative fields, as adcreative is immutable.
You will need to create a new creative and attach it to your ad.
If you are using Ads Manager, this will happen automatically when you edit your ad.
If you are using the API, just create a new creative, and then update your ad to use the new crative (send the new ID in the creative field).

Related

Fetch users media using the new Instagram Graph API on WordPress

Soo.. with the new changes that Instagram and Facebook have brought upon us, it has made it more complicated to have a module displayed on our website to just show the images from a user's feed.
Long Story:
Below, are the things that I have already accomplished:
- Create a Facebook page and link Instagram account (Completed)
- Create an Facebook App (Completed)
- Create a Business Manager page (Working on verifications)
I want to be able to display a users profile images depending on the username that is set in a custom field type on WordPress Admin Panel.
Questions:
Since we own all of our corporate IG accounts, do I have to implement Instagram/Facebook login to display user's feed items?
Is there a way to bypass this?

Open graph stories Facebook

I am new in Facebook App. and I just discovered Open Graph stories. I'm wondering - where should I insert action and object code? What are the steps in approval procedure?
I'm still new to this topic but found out some stuff (not completely yet!).
Via developer.facebook.com you have your app. You can add objects / actions to the left of the screen. The approval depends on the rights your app requires. Are you using the open graph for web or mobile app? Eventually you'll need to create a screencast (video) of how Facebook works in your app to get approved.

application_id for promoted_object for AdSet of Facebook Marketing API

Question about application_id for promoted_object of Facebook Marketing API.
I'm trying to create Ads for mobile applications published to Apple App Store or Google Play Market. These are applications of my clients, they are not mine and I don't have access to them.
I have successfully created AdCampaign object with objective=MOBILE_APP_INSTALLS.
But I can't create AdSet object for this campaign.
AdSet requires promoted_object with application_id and object_store_url fields provided. While I can provide object_store_url (it's just a link to application app store page) but I can't provide application_id for this app because this application is not mine.
At the same time business.facebook.com web interface does not require application_id. It requires application_url only. Screenshots: http://take.ms/jFQyY http://take.ms/CCBGM http://take.ms/pmNap
How can I retrieve application_id using application appstore url?
Or maybe it is possible not to specify application_id field for promoted_object of AdCampaign with objective=MOBILE_APP_INSTALLS at all?
According to the Marketing API documentation for "Creating Ad Sets with Promoted Object", it says "You cannot specify an object_store_url on its own without an application_id, this is something only available via our native interfaces.".
To retrieve the application_id, you may try the Connection Objects API to get the list of connected Applications to your Ad User account. Your clients need to grant you the advertiser role to their Facebook Application first before you can start listing the applications via Connection Objects API.
Connection Objects API is able to return the object_store_urls, which means you don't need to provide the app store URL manually.

Facebook profile image is not updating via Cloudinary

I'm playing with Cloudinary and getting the Facebook profile image of a user. This is what I did:
I created a Cloudinary account (free)
I created a Facebook account (sample one without assign a profile image)
** Works fine through my Rails app **
Then I changed the profile image of the user
Cloudinary still shows the user profile image as blank (4-5 days now)
This is my updated Facebook sample user.
This is what I get via Cloudinary (Ruby gem).
The problem is user's Facebook profile image is not updating via Cloudinary.
I'm using Cloudinary with Rails 4.
Cloudinary automatically refreshes Facebook profile pictures once a week, however you can explicitly refresh the image using the API, e.g.,
Cloudinary::Uploader.explicit("user_name", :type=>"facebook")
For more information:
http://cloudinary.com/documentation/rails_image_upload#refresh_images
Note that Facebook is gradually changing its user IDs to be associated IDs by application rather than public IDs which they used till now.
It is on Cloudinary's road-map to support Facebook's new IDs convention.

Get new profile cover with sdk

Is it possible to get and to change the new porfile cover (mine or my friends' profil cover) with the sdk php or JS ?
It is possible to get the Facebook's user cover image using the Graph API. You have to add 'fields=cover' to the user request. The response is an array of fields id, source, and offset_y. You need an access token for this.
You cannot update the cover photo using the API, only retrieve it.
http://graph.facebook.com/[USER_ID]?fields=cover
It's still not possible with the current APIs exposed by Facebook.