aspose file tools*
The moose likes Struts and the fly likes Check if user liked us on FB, followed on Twitter, then promote him to higher level in my website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Check if user liked us on FB, followed on Twitter, then promote him to higher level in my website" Watch "Check if user liked us on FB, followed on Twitter, then promote him to higher level in my website" New topic
Author

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

Sandeep Venkata Muppirala
Greenhorn

Joined: Aug 05, 2011
Posts: 3

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

Alexander Sales
Ranch Hand

Joined: Feb 21, 2011
Posts: 89

That is cool brother!


OCPJP 6, OCEWCD Java EE 6
Sandeep Venkata Muppirala
Greenhorn

Joined: Aug 05, 2011
Posts: 3

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check if user liked us on FB, followed on Twitter, then promote him to higher level in my website
 
Similar Threads
Arrogant programmers and economic climate
Gmail Buzzz
how to create this software in java
can v create this in java if yes name the technology we ll require ?
Who is spoiling H1- Visa image?