Foren

Callbackurl to Twitter API Registration

thumbnail
Bhushan Shinde, geändert vor 13 Jahren.

Callbackurl to Twitter API Registration

New Member Beiträge: 2 Beitrittsdatum: 02.07.10 Neueste Beiträge
Hi,

Is it possible to set callbackurl for Twitter API Registration from Liferay.
If not, can it be done using web services in liferay ???

Thanks,
Bhushan
Shreyas Atre, geändert vor 13 Jahren.

RE: Callbackurl to Twitter API Registration

New Member Beiträge: 5 Beitrittsdatum: 13.07.10 Neueste Beiträge
Bhushan Shinde:
Hi,

Is it possible to set callbackurl for Twitter API Registration from Liferay.
If not, can it be done using web services in liferay ???

Thanks,
Bhushan


Hi,

Depends on what you want to do with the callback URL.

If you want to access multiple twitter accounts through Liferay, then you would definitely need the callback URL. How to set it is given in the available Twitter-OAuth Documentation. You can check OAuth FAQ for more details.

If you want to access only one twitter account through Liferay, then you will have to register your application on twitter for the same account(for which you want access through Liferay), and then find out your own account's Access Tokens for that particular application(My Access Token). Use these values to access this twitter account through any normal java-class. You may use the open-source twitter4j api package for the same. For this purpose, the address of the callback URL is NOT important. You can give the application's website address as the callback URL.

Hope this solves your problem.

Regards,
Shreyas Atre