I have an app I want to allow the users to share specific views ( generated HTML of their data ) on Twitter or facebook.
Am looking for a logical design flow of what I'd need to do, and links to approved patterns from the social media vendors mentioned.
Thank you in advance.
You question is quite vague. Nevertheless, you cannot really post HTML code to Twitter or FB. Twitter only accepts 140 characters, if you want to "tweet". So, basically, you might want to create a shorten URL for your view on your web application and tweet the URL to the Twitter feed. When a user clicks on it, they will get to see your page. The same goes for FB as well. I hope this makes sense.
Related
In Google Analytics' Pages report, I'm looking at a particular page on my site, then, under secondary dimensions, pulling up "Source/Medium." I'm seeing rows for both of these:
t.co / referral
twitter.com / social
What's the difference between these two? I understand that links shared on Twitter get wrapped in t.co URLs, but then what are the visits coming from twitter.com?
t.co is a link shortner similar to bitly, but with some assurance from twitter that the link isn't harmful (they say they scan the page before giving out the shortened URL). People refered to your sites are getting there from a page that shared on twitter, and the people coming from twitter.com came from a twitter post.
So, basically:
t.co/referral implies Twitter -> other page -> your site
twitter/social implies Twitter -> your site
I'm not sure that #j-a-streich is right about that. From what I've seen, dealing with google analytics, you can't 100% predict why google ends up with the info they get - there are a lot of edge cases and gotchas. Here is what I have uncovered:
Twitter's official stance on how they handle referrer information: https://dev.twitter.com/docs/tco-redirection-behavior
t.co currently handles redirections by context and known user agents. We've taken care to preserve original referrers in all contexts where they are reliably provided.
But that doesn't actually help much, because they don't differentiate in that doc between t.co and twitter.com.
I did some testing, and it appears that whenever someone comes to your site direct from clicking a t.co wrapped link on twitter.com the referrer is the t.co link. That includes tweets and profile bios. That is also true for urls that were directly pasted into twitter and those that were pre-shortened by another shortener.
I also checked links from a client (old tweetdeck) and that showed up as t.co.
I wasn't actually able to find a valid source of twitter.com referrers.
My main problem with what #j-a-streich says is that he is appearing to say that the referrer will be maintained if someone goes from twitter to another site, then to you - and that won't happen. The referrer will be the other site.
I deal with this issue in my analytics as well, but I've just come to accept that referral data is not perfect and I treat it as so. I currently see direct, t.Co and twitter.Com referrals in GA and generally associate them all with Twitter. It's obviously hard to make a distinction with the direct visits, but there isn't much to do about that.
I think mobile device referrals play a part in it too because of the applications browser. I've noticed clicks in the android app show direct visits instead of t.co or twitter.
Is it possible to request permissions to allow your application like a facebook page on behalf of the user. Also could someone highlight the part of the API that is used to like the page, eg is there FB.LikePage etc?
What you're looking for is just not possible using facebook's API, The reason is obvious, if they allow applications to like pages on behalf of the user, then its like welcoming all spammers to scam all facebook users and people won't have any idea what just happened as soon as they've allowed the application and its like liking something which is not of my interest!
I don't think facebook will allow something like this in future as well, if they allow, then they should be prepared to handle all spams/scams.
From what i've used the Facebook API it is not possible and it doesn't make any sense to allow such a behaviour
I am an iOS developer and I am writing an app which needs to take statuses from my Facebook page and and display them in my app.
Does the Facebook API support that?
If it does, can anyone give a link for some tutorials or explain how can I make this?
I know that API supports an RSS feed but i don't found how to feed my statuses.
If you're using a Facebook page, you can easily use the graph API to query for posts made by that page. For example, for Starbucks:
http://graph.facebook.com/Starbucks/posts
You can simply load this in your browser to see the format the data comes back in, and all that's needed to access this data is a simple HTTP request. You can replace Starbucks with your Page's ID or username to get your Page's posts. These come back in JSON, which should be fairly easy to handle on your end.
Yes, the Facebook Graph API allows you to access your profile and extract any information you'd like from it.
I've never used the FaceBook SDK before so I'm not sure what I should be using or whether what I'm thinking of can actually be done. But I want to try to integrate some Facebook functionality with my ASP.NET MVC3 application.
What I need to do:
I want to be able to access someone's Facebook account (granted their permission) and allow them to send out invitations to my website. But, when a friend clicks on the link in the invitation message (whether a wall post, PM... whatever), follows through and registers on the site, I want to be able to track that (maybe by appending the ID or username of the this user to the invitation link, and then extract it from the query string when the invited person/friend registers).
Questions:
From what I've read so far and according to this link, what I think I should be using is the Facebook Connect API. Am I right?
Is what I'm trying to achieve actually doable? Basically, can I append the username to the invitation link? Is Facebook okey with that?
Do you have any good resources other than the Facebook Developer Wiki? Share them please!
P.S: I do not want users to login to my website using their Facebook account. I have my own Membership system. I just want to allow them to invite their friends to register at my website and track that. More requirements might arise but for now that is all what I need.
Your help is appreciated!
EDIT:
Ok I went ahead and created some test app using the Developer FB app to do some experiments. One thing I do not understand though...
Canvas Page: The base URL of your app on Facebook.
Canvas URL: Facebook pulls the content for your app's canvas pages from this base URL.
So what exactly is the Canvas URL? From what I understand, it's a URL to a resource (page?) on my website which Facebook can display inside the Canvas Page, is that correct?
yes
Yes
Facebook documentation + facebook developers forum, that should be all for you. Also, as you are using asp.net mvc, facebooksdk discussion will help you also if you use that library. I will stringly recommend to use that library.
Also, it seems, you are a beginner on facebook api with c#. If so, you can consider my blog post for beginners on facebook open graph api tutorial in c#. There also some other related posts also.Hope you may like them.
Let me know if you wanted to know something else also specifically.
Yes
Yes
Nope. The Developer Wiki has its issues but the Facebook Docs usually solve your problems.
Hey all,
I would like to make possible to share links of my website on twitter with a click. I've already done this for facebook, just one click and the classic facebook window appears where you can also write what you're thinking while sharing the link.
Is it possible to do the same for Twitter? I've searched through the web but I could only find apps that go on your browser and not for a website. Moreover it would be better a simple code instead of an app, if it's possible.
Thanks
You mean this?
Twitter tweet button
Twitter Dev tweet button