I want to post into community wall post with attached image. If I use simple api call to /page/feed with picture arguments it inserts a small image. But I want to attach big image, for example, from gallery. When I upload photo to gallery it automatically posts to wall. But when I post >= 3 photos all that posts are merged into single one with all inserted images.
The question is how to get different post for each uploaded image? Or maybe I can attach to /page/feed api not picture only, but image which would be uploaded into album?
Thanks
When you say "attach big image", I assume you are POSTing to /PAGE_ID/photos, right?
If you upload 3 or more images, yes, they will be collapsed when they are displayed in the page's feed. This is a "feature" of feed that organizes and collapses images that were uploaded together.
Imagine if you uploaded 20 photos to the page and they weren't collapsed; the feed would be dominated by the photos and it would be hard to see any other content (like content that was published slightly before the uploaded photos).
If you can provide a screenshot of what you are seeing, I can confirm this.
And yes /PAGE_ID/feed with picture is a thumbnail for a post. Example: a thumbnail to accompany a post containing a paragraph of text (or a link).
https://developers.facebook.com/docs/reference/api/page/
Related
Hi I am looking to insert a clickable image in a video. to make a video interactive.
Basically I have a form with 3 fields upload-video, upload-photo and a URL. What I am looking for is that when the user uploads these 3 fields the image will become the part of the uploaded video and upon clicking that image it will open a URL that was added in the form.
after that I have to provide the embed code of that interactive video to users.
Is there any way to achieve that functionality with php? I have looked into ffmpeg but I am not sure that it will do exactly what I need.
Is there a jQuery plugin that could generate video preview thumbnails even before user uploads it? I notice that Facebook could do so but do not know any plugin that has the same functionality.
Try uploading a video on facebook, notice that even before you publish it or the progress bar is still in progress, preview images of the video are available already.
I tried searching the net and most answers pertain to installing ffmpeg having this as a reference.
I haven't tried it yet but looking into it, it seems that the video should be uploaded first before it could generate a thumbnail. But I what I want is a preview of the thumbnail to be generate BEFORE the video is uploaded (similar to facebook).
This is so that I have the transaction to select a video and generate a preview thumbnail at the same time even before the video is published on the server. Once I hit the "publish" button, it will upload the video to the server, upload/save generated preview thumbnail, save info to database at the same time.
I don't think you have to download a video and make its thumbnail. You can make a request via Facebook API to get it. You just have to precise that you want the attribute "picture" in the result; this attribute contains the path of the thumbnail of the video. You will find more explanation by following this link: https://developers.facebook.com/docs/graph-api/reference/v2.1/video/
I'm using upload_with_media, trying to make a tweet having a message, a link, and an image, and I want the image to show up inline, in the feed, not just in the tweet, preferably with a link attached to the image. Like this tweet:
https://twitter.com/zeynep/status/492299393526403073
In that one, the image comes from an og:image tag on the page, but in the tweet the image is not the same as the current tagged image for that url. The html for that image in the tweet details is:
So it's an "Embdedded image permalink", possibly it's the one that was there in the twitter card when that url was first tweeted?
As for my attempts, I used a url of an image, used php file_get_contents to get the image, then saved it, then posted it using /statuses/upload_with_media. The image looks fine in the tweet, but it doesn't appear inline in the feed unless you click "expand".
https://twitter.com/DevDaleg/status/492355931699572736
Then there's this one, which I did manually using Twitter's UI for posting text with a photo. The image in this case DOES appear inline in the feed! That's what I want mine to look like.
https://twitter.com/DevDaleg/status/492375853024555008
To summarize, I don't think it's possible to have a link and an uploaded image attached to the link. Failing that, I'd like an api posted tweet to look like the result of the manually posted tweet, that is, having an image inline in the feed.
I found it. If the image has proportions of 2:1, and the width is at least 440 px, then it will show inline, so 440x220 and 1024x512 both show inline, but 400x200 does not, and neither does 440x170.
What I Want
I need to create the posts on a page wall with a big preview pictures - like the ones that are displayed when you upload a photo. It will make sense to add those photos to the "Timeline Photos" album of a user (or page) using the Facebook Graph API.
Sure I can poll the users albums list and search for a type:"wall" one (i.e. the Timeline Photos in the English translation), but what if the album does not exist? How do I create one or how do I make Facebook Graph create it?
What Have I Tried
Tried posting to /me/feed with a message and a picture URL (params picture or source), but all it does is just create a type:"link" post with a small picture, while what I need is a type:"photo" one.
Once again, I need that because of the big photo that gets displayed on a wall if post is a photo. For instance, that happens when I upload a picture to the album that gets automatically created for my application. But the issue is that when there are several photos posted one after another, Facebook automatically groups them in a set that belongs to an album.
P.S.
Basically, what I want to achieve is having an ability to send the posts to a page wall with big preview photos on the wall itself that are not grouped by an album name.
Please help. Thanks
Solved by posting a photo to /{page-id}/photos.
https://developers.facebook.com/docs/graph-api/reference/v2.0/page/photos
I am using Wordpress - I am wondering if it could work with posts'feature images and links as content?
In form, there would have brochure images (PDF thumbnails) with checkboxes. The user will select one or more thumbnails. On thank you, there would be correct selected thumbnails for the user to download pdf files.
So how to have posts display with checkboxes and then on thank you, how to display correct ones with links wrapped around them?
the help or insight would be appreciated. The image can help u to see what I am trying to achieve:
OR we do static things - how do I get the checkbox selected then display the correct pdf?
My idea, not very dynamic:
upload the pdf
copy the url of the pdf
make a new post (maybe create a custom post type for this)
paste the pdf url in a 'custom field'
add the featured image to the post
publish the post
on the frontend
query all posts which have a pdf on them.(based on posttype/tags/category whatever)
Make a list
show the featured image (you know how)
save selection on post ID (on submit)
show selection on post ID , get both the featured image and the pdf link.
Not the most graceful solution but that's how I would do it.
I would use a custom post type. Since the post doesn't need an title or body(text)