I want to know about the twitter status update from any one of the particular website. Currently as I am working with twitter status update, It's working fine. My question is: If I tweet anything in this tweet box it goes to this (http://t.co/fhlgeXf) URL. If I visited to on my twitter account it has been updated by that url: http://t.co/fhlgeXf.
But, I want that, the tweets go to my website URL with given my application name.. I have created API console which I created for via...
So finally I need the every updates go with my url link and my application via.
How can i get this?
If you are using the twitter's tweet box, all url's will be shortened with twitter's t.co url shortener. It will not allow you to include your original url there. This is actually a safety measure so that they can stop any rogue spam apps from spreading.
To tweet your links and have the 'via application', you will have to use twitter's OAuth implementation. There is a client side javascript API that you can use. Also there is a server side implementation that you may want to look into.
Related
I am using twitter widget for my site. This is the current js file I am using. I am facing the request time out issue for requests more than 150, which is due to the rate limiting API for unauthenticated requests as per the documentation.
Now I tried to go through the documentation to find how can I send an authenticated request i.e I will have to add an o_auth parameter, but was not successful. How can I achive it?
I also want to know if there exists a widget using which I can change the color of the tweeted texts and the background of the tweets.I want the user to have custom settings for the tweet box.Is their something present or I need to build it?
I am using PHP on server side.
Try http://twitterforweb.com
If You look closely at embed code there is "settings" parameter which You can edit same as at the project site :)
I am connecting to the Facebook API using HybridAuth on the server side (backend is written in PHP). This is for a SaaS publishing application that is hosted on our servers. I understand the mechanics of OAuth and that once I accquire the appropriate permissions from the user, I can write and read from the Open Graph API, which in theory will allow me to do almost anything.
The problem is that I would like to use some of Facebook's social plugins. In particular, I would like to implement the like button so that it automatically appears for each blog post, article and page.
The problem is that the like button and the various Facebook plugins require an app_id. I would prefer not requiring users to add the developer app to their account and creating an app to get an app_id as it can be a confusing process for non-developers.
Is there anyway we can create or retrieve an app_id from open graph (which we can store and use to generate the like buttons and other facebook widgets)?
With the migrations, I understand that each liked URL will not have it's own page. Once the user clicks a like button on your site, he automatically likes your page. However, let's say I have a page called http://www.mystore.com/products/some-awesome-product and there are other similiar pages, all with a like button. Is it possible that when clicking like, the user automatically likes our Facebook page, but when an item is published in their news feed for the like, the URL links to that specific product? Effectively, is there a way for users to like multiple pages from my site?
Update: It looks like we can generate app_ids programmatically with the create application API in the legacy REST API. However, this does not seem to be an option with the graph API.
Seems like we cannot programatically create an app_id for an account. This is not an issue, as we will just create a small guide to guide our users through creating an app and submitting the app_id to us using a form. Not perfect, but should be easy to implement.
As for URLs, liking something will not automatically like your Facebook page. If href is blank, the current page will be liked. If you set your facebook page in the href parameter, then your facebook page will be liked.
I've never made an application on twitter before. But when I do I want to use PHP and Twitter to award users when they send a tweet using my application.
So for example.
User clicks on "Tweet for bonus insert_stuff_here" link.
User then allows app to use they're twitter.
~Tweet gets posted~
PHP detects that <-- somehow?
You want to look at the twitter API then when you post the users tweet on their behalf you can run your code at the same time to award a bonus.
you will need to create a twitter application and create a oAuth key.
https://dev.twitter.com/docs/api/1/post/statuses/update
https://dev.twitter.com/docs/api
People here aren't going to write a whole script for you when you haven't even attempted it yourself... i would suggest you do some research attempt some code, and if you get stuck then post what you have so far :-)
I've built a little mobile web app for the town I live in which aggregates a lot of info and makes it readable. Lately, on my android phone browser, when I go to a certain page it asks me do I want to open it with Browser or MX Android Player. I've looked at the request headers in Chrome and I can't find anything wrong with it. I've had someone test this on an iphone and the issue doesn't happen. Any ideas?
The site in question is http://sligo.me
The page throwing errors is http://sligo.me/Events.
This has nothing to do with your page. It rather has something to do with MX Android Player. Android allows its app to register for URLs to be handled through them. In this way if Chrome is installed on a phone and the user clicks on an URL the system will ask if it should use Chrome or Browser to open the URL. The user can now select a default app or make the choice every time she clicks on a URL.
An app can also register for some URL parts only. A good Twitter app would register for all URLs with the host Twitter and then display the content of that page inside the app.
I guess that MX Android Player registered for some URLs and the http://sligo.me/Events matches that filter. You could experiment a little bit and try to change the URL part that the filter matches. More information about this filtering can be found in the Documentation about Intents and Intentfilters
Hello I am looking to build a basic API and application/apps system on my social network something like Facebook or other sites have, my site is in php/mysql. Here are some questions.
1)
Basically what I want to do is give a user a API key and secret. After I have these how can I use them in my php app to authenticate a user request which would come from there server?
2)
I can basically build an API to send a request to my server with CURL and get the result back to the page in XML or JSON or whatever, the problem is when sending the request the user would have to know the user ID they want to send to lookup data against, this is fine for an API but I am wanting to have an Apps section where the user's app site would be using the API and would be loaded into my site in the app section with an iframe, the problem is, I need to find a good way to make it where a logged in user on my site can go to the app section and go to an app and there username should be available to that page loaded in the iframe. Facebook and myspace do this somehow and many other sites; I am lost how to get around this hurdle.
Any help on any of this is really appreciated, thank you
Update:
I just had an idea, if I require a cookie to be set when a user visit's my site, then they would have a cookie and it could hold there User ID, then my API script could look for that cookie to exist and grab it's value?
If you plane on using an IFRAME, then no, your API hosted on a separate website (the website inside the IFRAME) would not be able to grab the cookie. The cookie is only visible on the website that it was set for.
I have only used Facebook API with the FBML (not the IFRAME,) but all they do their is basically replace what's in the page with the info that the "tag" is calling. I'm not sure if there is a better way, but you could possibly call a page on the app's server (say the app is hosted at http://example.com/app/, and you called http://example.com/app/?id=28318&name=John%20Maguire,) and have your API code handle it and turn it into a variable?
Maybe you should look into the source code of the Facebook API client.