Inviting Users to Events via Facebook API - ruby-on-rails

I'm able to create an event via the Facebook Graph API but I have yet to see a way in which to invite users to that event.
My fallback is to simply use the old REST API but sooner or later that will be phased out so I wanted to see if anyone had any suggestions.
--
Additional side question:
While using the REST API (or possibly even the Graph API) I have not found a way to invite guests who are not on Facebook. Is there a way to do this?
--
Thanks in advance for your help.

The bad news is that I think you're stuck with the REST API, at least I couldn't find another way (see http://bugs.developers.facebook.net/show_bug.cgi?id=10070 if you haven't already). The good news is that there's still so much functionality missing from the graph API that I'm pretty sure Facebook isn't going to be phasing it out any time soon. Very frustrating though...

can I use the JavaScript SDK to call the old REST API method ?
JS SDK

Related

How to invite Facebook friends from iOS app?

The current solution I found involves a complex set of process, I have not figured out 100% yet. Thus, I wanted to know an expert opinion on this.
This is what I have so far:
Access Graph API endpoint /friends which will give the list of friends who are also using the app
Invite them (I have no idea how)
For an invite, I have found this, but that's already deprecated. Which uses FBSDKAppInviteDialog.
I also found this but it seems like she is just promoting their own product. If they can do it then there must be a way for me to achieve this as well. Still, I can't find it in Facebook docs.
The sad thing is, why would Facebook make this simple stuff very hard to do?

How can I get share count using the new Twitter Search APIs?

I wonder if it's still possible to use the Search API on client side using an AJAX call, C# would be fine too, but so far I'm finding a lot of talk about this but no code sample or any good instructions how this can be done,
Some sites like these are doing it but obviously this got way more complicated to do than before
I don't see any practice examples on https://dev.twitter.com/rest/public/search
Any suggestions?
As you've discovered, Twitter has turned off the sharecount API - see https://twittercommunity.com/t/a-new-design-for-tweet-and-follow-buttons/52791/5 and https://blog.twitter.com/developer/en_us/a/2015/hard-decisions-for-a-sustainable-platform.html
There are some alternatives like https://opensharecount.com/
That works by continually searching the Twitter API and counting up all the shares that it sees.

Rails 3 facebook plugin/gem?

Does anyone know of a good Rails 3 compatible gem or plugin that support the Facebook API (rather Graph API but old REST is ok too)? Mostly for getting profile picture, info, friends and posting on wall.
I am looking for something that seems to be maintained well so I know I can count on it in the future as well.
Koala :- A lightweight, flexible library for Facebook with support for OAuth authentication, the Graph and REST API's, real time updates, and test users.
https://github.com/arsduo/koala
OAuth2
http://intridea.com/2010/4/22/oauth2-gem-just-in-time-for-facebook-graph
http://github.com/intridea/oauth2
I found Mini_fb as quite good one. Try it.
Well written, well maintained (as at time of posting) https://github.com/nov/fb_graph

using APIs with oauth for single user

I'm trying to make use of various APIs including twitter, youtube, etc because we want to embed recent entries (tweets, videos) on our website.
However, since I'm just retrieving my own data, I'm wondering how I can do this simpler than the multi-step process required by OAuth.
Twitter provides me with my own access token I can use directly, so that kinda works, but I can't find any such token in the YouTube documentation.
So how am I supposed to make use of the api if I just want to get a simple list of stuff? how exaclty am I supposed to authenticate my own website to use my own account?
I think i might have things all wrong and if so please point me in the right direction. I tried using rss feeds but they don't give me as much control over what I retrieve as using the API directly...
any insight or suggestions are appreciated!
see my comment above. summary: it depends on the requirements of the individual api

Getting stats for Twitter app

I'm using Twitter's OAuth for my app (DroidIn)
To my dismay I can't find any way to track who and how often is using the app. Searching Twitter for "sent from DroidIn" does not yield any results. I suppose I can call some sort of counter app from my code but that doesn't seem to be fair to my users. Any ideas or suggestions?
It seems that yet again I have to answer my own question. After some investigation and feedback from question posted on Google Twitter developer group it seems that for now there are no stats easily accessible or available. Said that I found 2 interesting things:
You can search Twitter using source:yourapp switch. For example you can try this query
android source:API
There is very exciting streaming API from Twitter. I have a short write-up in my dev blog.
But if you want some actual stats there's no other choice today but implement it as part of your app. There's one more possibility if you have some sort of web-based interface you may want to use Google Analytics to trigger some Google javascript while submitting the update. I'm trying that right now and may end up with article in the blog

Resources