Displaying Image in Image Attachment - slack-api

According to the Slack API, if you provide a valid link to an image_url, that image will be displayed. I've tried this with the message builder here but no image is ever displayed. I also tried this using cURL, and once again the image doesn't display. Any idea how to get the image to display? This is for use in creating a bot to send notifications through an incoming webhook. Thanks!
Image of JSON and corresponding message preview:

They seam to be two problems with your example.
You can not use both image and thumb together in the same attachment. If you want to use both in your message, just create another attachment.
When using imgur you need to use the direct image link, not the imgur page link.
Here is a working example.

Related

Zapier: How to post tweets from trello multiple attachments of images?

I am using a zapier zap to post tweet from trello card added to a specific list.
The description part goes to tweet text and attachment image goes to image of tweet.
In case of one image attachment works well. I use zapier formatter to extract an image url from trello card's attachment.
But I want to tweet more than 1 images. In that case zapier pass the multiple attachments as one zipped file contains attached images. So it fails to pass it to the twitter as invalid media format because it is zipped format but not image format just like .jpg, or .png.
How can I implement this?
Thank you in advance.
What you're describing is expected behavior in how the hydration process is handled for multiple images.
You might be able to use a third-party service like - https://zapier.com/apps/convertapi/integrations app to get these files unzipped within the editor.
With that said, afaik, unless you're creating your own private dev Twitter app, the main app only able to accept one image per post at the moment.

Content to share in Facebook is empty [duplicate]

I could set custom picture and caption for link. Now it is impossible for v2.9. Is there some kind of workaround without specifying og: tags.
When using Facebook Graph v2.8, you could post a link and display a custom image and not the "og:image".
This was done by adding the picture parameter to the hook.
https://graph.facebook.com/v2.9/me/feed?link=https%3A%2F%2Fwww.google.com%2F&picture=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtntOCGkgt98%2Fmaxresdefault.jpg&name=test&message=this%20is%20a%20test&access_token=**********
The graph API is at 2.9 and as per the documentations this is still supposed to work Facebook API doc
However, it keeps getting overridden by the scraped image. Is anyone else experiencing this problem or have a workaround.? Facebook API Explorer
picture, name, caption, thumbnail, description are all set to be deprecated.
https://developers.facebook.com/docs/apps/changelog#v2_9_90_day_deprecations
You can go ahead and use Open Graph for posting images with custom description and title.
You can get an insight of the same from this link -> https://developers.facebook.com/docs/sharing/webmasters?hc_location=ufi

Is it possible to open Tweetbot and share an image?

Using URL schemes is it possible to open Tweetbot from my iOS app and create a post with an image? I have looked at this page and maybe I am just missing it but all I can see is to create a post with text like this: tweetbot://<screenname>/post?text=<text>
Can I pass in a UIImage or image data or something else to have it post an image?
From looking closely at the TweetBot URL scheme docs, it seems that is not possible. To the best of my knowledge, you cannot attach an object to a URL scheme. You could however upload the image to an image service like Imgur via their API, and then pass the URL of the image to TweetBot along with text. Here is a link to Imgur's Objective-C samples: https://github.com/geoffmacd/ImgurSession

Explicity disable image sharing to facebook using mini_fb gem

I use mini_fb to share text and images to facebook. My requirement is
When share text then it should share only text
When share text with image, then both text and image should be shared.
My problem is when I share text only, then a random image from the url is posted to facebook along with text. When I searched for it, I found that facebook is picking up images with og:image tag, and picking the last image and posted it.
But there is no explicit meta tag with property "og:image" in my site.
To avoid this I also put explicit meta tag with property "og:image". But the client does not need this.
Can I explicity disable image sharing to facebook, when no image is shared to facebook using 'mini_fb' gem?
it seems that at the moment it isn't possible, not because of the gem, but because of facebook.
By removing the ability to customize link metadata (i.e. headline, description, image) from all link sharing entry points on Facebook, we are eliminating a channel that has been abused to post false news.
you can see more information about this here
https://developers.facebook.com/blog/post/2017/06/27/API-Change-Log-Modifying-Link-Previews/
the way you solved it at the moment is the right way. it's better for you to set explicit the image you want to show, so there is more control about it by you.

Upload image and text data in iphone

Hi stackoverflow friends
I want to upload text along with image to the webserver. I saw so many examples for uploading images to webserver but nobody explains how to send text from a uitextField along with image.
All of them points this link
http://iphone.zcentric.com/2008/08/29/post-a-uiimage-to-the-web/
This link gives only how to upload images only. I want to send some text values along with this. Could you please send me some example code.
Any help is Appreciable
I recommend you try ASIHTTPRequest. It allows you to easily accomplish such a task. You can create a PHP file that will receive your data via POST - ASIHTTPRequest provides some easy to use methods for this.
See here.
you can Use Evernote API for this purpose

Resources