I've been following this question to retrieve the twitter feed for a particular user Authenticate and request users timeline twitter api 1.1 which is working as expected, the issue I now have is trying to style it to make it look like the twitter feed, the reason we are doing this on the server is because we have a database with all our tweets in so instead of making calls to twitter we have decided to call our database and pull them through. This was implemented and followed through just encase twitter decided to update there API which may result in our feed working (management didn't want to take that chance.)
I have spent some time today trying to find a possible solution to see if this has been done already, I'm aware people have provided server side code to retrieve the tweets but I can't find an example of passing the tweets to the view and displaying them.
Related
Since the existing instagram APIs are deprecated, I am switching to the graph api.
Below is what i want to achieve and what the issue is.
Requirement.
I would like to track the number of likes and comments on instagram posts in which my business account is mentioned using #. I have setup the faccebook and instagram accounts along with the webhook. The webhook is going to send me the "mediaid" in which i my business account is tagged.
Since the app is in the development mode i am not receiving the webhooks if i mention the business account in any of the post, but i am able to send the test webhook from the developer account console. So i assume once the app is in LIVE mode it will start sending the webhooks to my server.
Once the "mediaid" is received i would like to make a call to another api https://developers.facebook.com/docs/instagram-api/reference/user/mentioned_media
in order to get the number of likes and comments.
I am facing an issue on the 2nd part. Whenever i call the api mentioned in the 2nd part i am getting the error
This api call works fine when i pass the mediaid that my instagram business account owns. But as soon as i pass the mediaid of the post which mentioned my business i am getting the above error.
I just wanted to check if this is also a limitation of my facebook app being in a development mode ? Please suggest a solution to achieve this scenario.
I tried the same what you did but with a live facebook app. From the webhook, I got an event when any other user mentioned my instagram business handle in caption and am able to fetch the mentioned media details using the mentioned media API https://developers.facebook.com/docs/instagram-api/reference/user/mentioned_media.
As you didn't share the webhook event payload, I am just assuming you are using the correct user id while making the API call. The JSON path of the user id in event payload is entry[0].id
I have website had built by using ASP.NET c#, my website contains page called my tweets page to display all my tweets from my account on twitter.
I seen many ways but all ways need authentication step , so it bad solution, I am searching about way do what I need, without need authentication step.
Summary:
I am looking to get posts from timeline as data or Rss to make customization for it in my website ,without need authentication step.
If I understand correctly you want to display your tweets on you asp.net page.
You can do this by simply creating a widget and loading in on your page. this is a very simple process involving simple html and java script. Twitter will take care of the rest.
Below is the link
embedded-timelines
no authentication is required.
One small correction, you can display a maximum of 20 tweets at once, after that user needs to click on load more to get the some more appended below.
I am confused about this upcoming Twitter API 1.1 change and how to re-implement functionality like that that used to be provided by jquery widgets like http://tweet.seaofclouds.com/ and http://thomasbillenstein.com/jTweetsAnywhere/.
I have been able to get linq-to-twitter to do a search using the ApplicationOnlyAuthorizer to at least get most of the information into a GridView, but this will re-use the same tokens (the ones belonging to the application) over and over, and will very quickly burn through 450 requests in 15 minutes when deployed to a live site with hundreds/thousands of active users...
In addition, for display I'd rather be able to re-use one of the basic jquery plugins out there, so it seems I'd have to point the jquery ajax call to a local page method or web service to make the server-side call for me...then if I were using linq-to-twitter I'd have to mash together the search results into an anonymous object and JSON serialize it back to the browser...right?
In addition, to solve the rate-limiting issue, it seems like Twitter would like me to make these search requests on behalf of my users, but that will require sending them through the oAuth authorization workflow, and then having to store their tokens somewhere to use every time they load a page that shows the "twitter feed". Right?
Finally, part of the functionality built into the existing application is the ability to store a list of tweet ids and twitter user ids and strip those out of the results (if they are offensive, etc).
My brain tells me that there is no way that a simple task such as "show me all tweets with #whatever in them, except for tweet ids 1111212, and 1356346" will require everything I describe above...
What am I missing here?
Edit to Clarify Question
If all queries to Twitter's 1.1 search API must be authenticated, and using ApplicationOnly oAuth authentication is not an option due to rate-limiting, and we don't want to force users through oAuth to capture their tokens, how are we expected to show lists of tweets from the search API in an auto-update jquery-like fashion?
The only option I've found is Embedded Timelines (unless you want to build your own server-side solution with caching, etc):
https://dev.twitter.com/docs/embedded-timelines
I am trying to find a way to retrieve my own private playlists from my own personal YouTube account via a server side web app built in ASP.NET (C#). Based on the research that I have done, the consensus seems to be that my app needs to authenticate against my account with Oauth 2.0. I want my website to show a list of videos from a few playlists that I have set as hidden, and I want the list to show on a public page. For this reason, I obviously do not want to enter in my youtube account details every time that I browse the page.
I have looked and looked and there does not seem to be any clear way to do this. Some people have suggested going through the Oauth 2.0 authentication flow once, then use the code that it returns in the redirect URL to generate a refresh token, and use that token in your application; another suggestion I have read is to use an API service account. There does not seem to be any working example code available anywhere.
Has anyone had to do this same thing and have you been successful setting it up? Google's own API client library documentation is abysmal, especially for the .NET libraries.
If the playlists are hidden you won't be able to access them without logging in.
If the playlists are public you can always query for them through the YouTube API without having to pass your credentials.
I need to post on a website the wall notifications of a Facebook group, the group and the website belong to the same entity.
I've looked at many of the options available, but I would apreciate if someone with a bit Facebook developing experience told me what is the best path (most straighforward).
The website is not intented to interact with Facebook in any other way, there would exist no Facebook login button, and this one wall would be the only one being consulted.
I've looked at the possibility of grabbing an rss feed from the wall, but that option doesn't seem to exist.
The website is being done with asp.net (c#).
And Social Plug-ins are Exactly for that purpose. For your requirement you can use Live Stream Plugin. Look Here: http://developers.facebook.com/docs/reference/plugins/live-stream/enter link description here
Similar to your choice of getting an RSS feed of the group activity, you can use the Graph API to get the activity as JSON objects, at which point you can render them to your page.