Is it possible to have a twitter button that a user can select on a web page and have it populated with an image and a tweet. Then provided they are already logged in, allow them to tweet it?
I know there are various libraries around for doing this to your own twitter account, but I want to let the user preview the image then tweet it.
I can get the user to tweet a phrase, and a link to an image, but I want them to have the image embedded in their tweet.
I have managed to write some back end code to authorise ourselves and push an image up to the upload end point, and extract a media_id for it for us to use. And I was hoping I could use this media_id somehow with the tweet button, but it doesn't seem to allow this.
Is it worth keeping with this idea, or is it not actually possible?
Related
I'm using the YouTube API to create a webpage that allows users to view a specific set of YouTube videos, and then LIKE those videos, using YouTube like/dislike rating system, and It's working fine, but when the user triggers the process, after logging into their google account, they are presented with a permission dialog that basically says
"Hey, this site wants complete and total control over your YouTube account!".
I DO NOT want that, I only want the user to be able to rate the videos.
I'm using the PHP Client library to pull the list of videos into the page and display them, and this requires no permissions or interaction from the user. I am also using the JS library to handle the "like" functionality, and it's basically the javascript example from https://developers.google.com/youtube/v3/docs/videos/rate?apix=true, but with my credentials.
Can I change this somewhere, or does YouTube just lump all of it's permissions under one giant "I can do anything" permission group?
I figured it out. It's about the OAuth 2 scopes, which the example lets you change for the DEMO, but it doesn't actually change the code in the sample.
For reference, the list of scopes is here: https://developers.google.com/identity/protocols/googlescopes#youtubev3
I created a coordinates website that shows different information about a location. I pull this information from API's.
One of the things I show on the website are location photos that I pull from Google Places API.
Now I've received an e-mail from a professional photographer who says I'm infringing on his copyrights by showing the photo on my page. I've told him I pull the photo from Google Places and that he should contact Google if he doesn't want his photo on sites.
His reply is that I as website owner are responsible for the content and that Google has nothing to do with it. I find this very hard to believe...
What do you guys think? Any advice? Can ask Google for help?
The Google Places API has this to say about attribution:
Photos returned by the Photo service are sourced from a variety of locations, including business owners and Google+ users contributed photos. In most cases, these photos can be used without attribution, or will have the required attribution included as a part of the image. However, if the returned photo element includes a value in the html_attributions field, you will have to include the additional attribution in your application wherever you display the image.
Did the photo in question have anything in the html_attributions field? If not, then you're correct that the owner needs to talk to Google. If it does and you didn't display it, then you are in breach of copyright.
I have a twitter share button on a webpage. I have submitted my website for twitter cards, and it is approved. I am using the twitter card tags correctly, but I have troubles to get the images appear on the time-line. On the twitter timeline I only see text and the URL. Only when clicking on the tweet, an image appears below (the tweet expands).
I would like to have this image appear on the timeline, without needing to expand the tweet. Is this possible, or am is it necessary to use a service like twitpic or flickr to make this happen?
My first thought is that this is not possible because twitter only accepts certain image websites to publish their images on the twitter timeline, but I cannot find a twitter dev source that confirms this.
This is the normal behaviour for the twitter card.
Please read https://dev.twitter.com/cards/troubleshooting#timeline
The second point of the troubleshooting might be the solution you're looking for: "For photos and animated GIFs, upload the media directly with the Tweet or consider using the Twitter API to upload media." You can also explore the other solutions offered.
UPDATE: It looks like the solution I was proposing refers to sharing content directly from twitter, so it's not an option. See this twitter community thread
Please recommend an image sharing service that can be called programmatically to upload a photo. I want to use the returned response and post a link to that photo or album in a Facebook message on wall.
The problem is that Facebook doesn't allow to use an uploaded photo within Facebook to be used in the wall message whereas external domains are allowed.
Can flickr be used? I don't want the users to login to flickr though.
Have you tried Imgur? http://api.imgur.com/
My iPhone app uploads pictures to the user's Facebook account, and they are automatically placed in the app's photo album on Facebook.
In the majority case, the user's wall is also automatically updated to denote that the photo was recently updated. But I dont want this, because I prefer to make a separate wall post with a link to the photo. It's silly for the user's wall to have two entries on it with a thumbnail of the same image.
1) how can I upload the photo using the graph API in such a way that it isn't announced on the user's wall
2) how can I tell if the photo upload resulted in an announcement on the user's wall -- sometimes it doesn't. I'd rather not have to ask for permissions to read the user's wall..
From this Facebook Doc:
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.