I am using Corona and have integrated my app to share a message and photo using FB Graph Api. Does anyone know how to post video in Corona.
According to http://developers.facebook.com/docs/reference/api/ there are no write permission on Facebook for uploading video.
You can use facebook.request( "me/photos", "POST", attachment ) to post photos, but there are no "me/video" or anything similar, mostly because Facebook do not want it for some reason of their own.
https://developers.facebook.com/docs/reference/api/video/ mentions two How-Tos:
How to upload a video to a user's profile using Graph API: “To publish a video, issue a POST request with the video file attachment as multipart/form-data to https://graph-video.facebook.com/me/videos”
How to upload a video to an Application, Group, or Page's wall using Graph API
Related
I want to publish on a page photos and videos and text in the same post.
According to the Facebook Graph API documentation v13 with this endpoint you can publish a photo on a page.
https://graph.facebook.com/{page-id}/photos
And with this videos are published
https://graph-video.facebook.com/v13.0/{page-id}/videos
Both endpoints allow a message along with the video or photo.
I suppose there must be a way to create a container like it is done on Instagram to post several with a text
This is specifically about hashtags using the Facebook Instagram API.
Has anyone successfully retrieved the thumbnail url for a video in a hashtag feed? Even when using the graph API I cannot get anything to return?
To get the thumbnail_url you have to make an extra call to the Oembed endpoint using the post for the video and an access token. You must have an approved APP for this to work also. https://developers.facebook.com/docs/instagram/oembed/
https://graph.facebook.com/v9.0/instagram_oembed?url=https://www.instagram.com/p/CKRgKXoif40/&access_token=xxxxxx
Then you will see the thumbnail_url option available to you.
I'm developing an application to show videos and images from facebook by using the Graph API. I've followed the Graph API document and able to show all images. But in the case of videos I'm getting only the videos where the user is tagged-in.
I need to get the user uploaded videos too.
How can I get the videos?
The Graph explorer link : https://developers.facebook.com/tools/explorer/APP_ID/?method=GET&path=me%2Fvideos&version=v2.3&
After some changes in the Graph API calls I've found the solution.
https://developers.facebook.com/tools/explorer?method=GET&path=USER_ID%2Fvideos%2Fuploaded&version=v2.3&
This'll help us to get all the uploaded videos.Where USER_ID is the id of the user who's signed in.
/me/videos should return all videos, tagged and uploaded. You can restrict to one or the other by using the type parameter: /me/videos?type=uploaded
Can anyone please let me know how to post voice update on facebook, on a user's wall, using the php/js - sdk and Graph API.
Thanks in advance.
You would publish a post to the user's feed containing a link to the mp3. The mp3 needs to be hosted on the internet somewhere.
https://developers.facebook.com/docs/reference/api/post/
https://developers.facebook.com/docs/reference/api/link/
Can I upload photos using Facebook API but not post to wall in Facebook?
What I use is the photos.upload in the API.
If it cannot be avoided, is there any way to delete that wall post so that I don't have to do it manually?
Documentation of graph API (http://developers.facebook.com/docs/reference/api/photo/) mentions the following:
If you would like to suppress the
story that is automatically generated
in the user's feed when you publish a
photo (usually because you plan on
generating your own), you can add a
no_story=1 parameter. In this case,
the user will receive a notification
that your application has uploaded a
photo.
Adding the same parameter to the legacy REST API seems to work for me
Let me answer my own question:
It's about the permission problem. We can set the permission so that the photos do not publish to wall.