I am working on a website contains a collection of Backgrounds and cover pictures. Can I know how can I let users install the backgrounds in their Twitter profile?
The user will need to authenticate with your website, then you will need to use the API call as per the documentation: https://dev.twitter.com/docs/api/1.1/post/account/update_profile_background_image
Related
On youtube.com, we can easily switch between channels by clicking on the user picture on the top right of the screen, then 'Switch Account'.
I would like to have a similar functionality in my app. I already made it possible to connect using any account (brand or normal), however I need for one login to retrieve data (login informations, profile picture, etc) about all brand channels.
I can of course ask the user to connect multiple time, and then store the informations that I need, but I would like to avoid that.
Is it possible to do that?
Edited:
I don't have any code for the moment, but by looking at the youtube api I'm not able to find any way to do this. The ideal should be to have something similar to the /{user-id}/accounts of Facebook's Graph API https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Faccounts&version=v3.1 which allow to see all pages accounts – Raphael just now edit
I'm building a web app using rails. In this site I basically have several profiles, each of them linked to a specific profile picture from twitter.
Instead of install a twitter gem or similar, I just use this line of code:
https://twitter.com/<%= influencer.username %>/profile_image?size=original
It works great, but what I've discovered is that in some devices the browser can't show them. Specially on phones.
Any ideas of why this thing doesn't work?
Or, is there another way to do this?
The website (super beta) is: https://influencerlist.io
Thank you!
That’s because on phones, Twitter redirects to mobile.twitter.com, and the image URL is not available on mobile.twitter.com (try this in a browser for yourself). The correct way to obtain the user profile image would be via the Twitter API and querying the user object from /1.1/users/show.json (or, via the users/lookup batch endpoint).
I would like to know what is the best way to show a Facebook group in an iOS app.
I have a iOS app that uses Facebook logins for the users to access content. I thought I might be able to display the a Facebook group using a UIWebView. The problem is when the Facebook group webpage the opened, the user is presented with a login. As the user has already logged into my app using Facebook, I am wondering if its possible to use the current access token to inform Facebook that the user is already logged in.
If that doesn't work, how else could I add a Facebook Group to a iOS app? Is there a sample app somewhere that displays Facebook page is a UIViewController?
Thanks
To the best of my knowledge, if you want to show FB content in a UIWebView, the user must perform the login inside the UIWebView. You cannot share your access token with the web-view.
A possible solution would be to use the graph API (you're already using the FB iOS SDK, right?) to retrieve the group info, feed etc. and show it to your users. The downside is that you'll have to create and display the group info yourself with your own design.
You can take a look at the FB graph API for groups here.
I am working on a project now where I am trying to display twitter widgets. I have the twitter names for the users, and would like to display their tweets. I am able to display it with my own css etc., but not as a twitter widget.
Is it at all possible to make an actual twitter widget for an arbitrary user, or do we need to manually make a new widget in twitter for every user we want? I have been pulling my hair for hours or even days now, but have not been able to figure this out.
I am using Rails and the twitter gem.
If I had #twitterapi as a twitter name in my database I would like to be able to display a widget that looks like this, without having to manually make one in my twitter account.
Is this possible? Should I go with faking the styling and make it from the twitter data I have? Anyone have any good tips?
Check out the Twitter's gem API here: http://sferik.github.io/twitter/
In short, it is possible. You would just have to include Twitter in your app and then call:
Twitter.user_timeline("username")
Just beware that Twitter limits the amount of anonymous requests. So, it would be better if you set up your Twitter dev account and get your credentials.
Source: Display a Twitter feed from a Rails app
http://railscasts.com/episodes/359-twitter-integration?view=asciicast
It's outdated but you can use it as a reference.
Let's say I want the user to be able to view my Twitter account feed via a button in my app's credits view.
What's the proper way to do this?
I can load the URL easily enough to twitter.com but what if the user doesn't use the web version of twitter but the Twitter app or Tweetbot, etc.?
I failed to find anything obvious about a twitter:// protocol.
Thank you!