• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Check if user liked us on FB, followed on Twitter, then promote him to higher level in my website

 
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

In my current project, there is an article posting module. Now, there are three privilege levels that we offer to the users making the posting. The base level is free, next level costs bit higher than that and the final privilege is costliest of all, as understandably.
Now, we want to integrate the following feature, while making the posting:

a) If the user has, say, liked us on facebook OR twitter, then he can directly do the privilege level two posting(and this is, even if he hasn't paid; i.e If he just qualifies for the privilege one level - The free posting privilege level).

b) If the user has, say, liked us on facebook AND followed us on twitter, then he can directly do the privilege level three posting(Even if he hasn't paid or if he is in the privilege two level).

Using the api's available, is there any way I can get the user to log in to FB or twitter, after they undergo the like and following process, they come back, and I automatically update the privelge level, and go ahead. Are there any api's that can be tailor-made for my situation.
Are there any similar implementations.

Kindly suggest some advice, ranchers. I would like to know how to go about this.


Thanks,
Sandeep

 
Ranch Hand
Posts: 89
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is cool brother!
 
Sandeep Venkata Muppirala
Greenhorn
Posts: 3
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton, Alexander. It indeed is cool.

But I was hoping for some API's that I can use for this particular progress. A couple of months back, I was able to fetch user's data from FB, Twitter and import contacts from gmail, yahoo.

But, this is an altogether different situation I find myself into. I need to, kinda, track each user's id, so the next time he does the posting, i have to check if that id is present in the tables of fb likes and twitter followers that I have to maintain. It not just ends there. After that person likes on fb and twitter, and he upgrades and does the posting, if he goes into fb and twiiter and unlikes us, then we will have to bring him back to the level where he originally was before upgradation.

So as you can see, the most difficult part is tracking the id of the user in fb and twitter (Actually, tracking only the likes of our page, and no other information of the user is needed).

Are we entitled by facebook and twitter to do that.
If yes, then are there any implemetations, code snippets and/or examples that atleast does a similar job.

Thanks,
Sandeep
 
    Bookmark Topic Watch Topic
  • New Topic