Vishal Sahu

Software developer by profession , passionate about Groovy, Grails and Java/J2EE technologies and a great lover of Open Source.

Grails

Retweet a tweet using Twitter4j

Hi, In one of my grails project, i worked on integrating twitter API with the grails application. The requirement is such that we need to display all of the tweets to any user in our application and provide the basic functionality such as reply, retweet, favorite, send direct message etc using the API calls. I used Twitter4j (a java...

24-Sep-2012

Grails

Reply to a user tweet using Twitter4j

Hi, In one of my grails project, i worked on integrating twitter API with the grails application. The requirement is such that we need to display all of the tweets to any user in our application and provide the basic functionality such as reply, retweet, favorite, send direct message etc using the API calls. I used Twitter4j (a java...

24-Sep-2012

Grails

Mark tweet as ‘Favorite’ using Twitter4j

Hi, In one of my grails project, i worked on integrating twitter API with the application. The requirement is such that we need to display all of the tweets to any user and provide the basic functionality such as reply, retweet, favorite etc using the API calls. I used Twitter4j (a java wrapper for twitter API calls), to make API...

24-Sep-2012

Grails

Sending ‘Direct Message’ to a twitter user using Twitter4j

Hi, In my recent grails project, i worked on integrating twitter API with the application. I used Twitter4j (a java wrapper for twitter API calls), to integrate the application and use the API calls. You can refer this blog to see how we can integrate the grails application with Twitter. For making any API calls we need to have...

24-Sep-2012

Grails, Product Engineering

Copy Files/Folders from one location to another in Groovy

It is normally difficult to copy file/folders from one location to another. In my recent Grails Development project, i successfully achieved this. I had to copy files/folders from one location to another on file system. I searched about it and came across a cool method to copy files or directories from one location to another. We can...

21-Sep-2012

Grails

Integrating LinkedIn Groups in grails application.

Hi, In one of my recent Grails application, i needed to integrate LinkedIn groups with the application. In my previous post, we discussed about Integrating LinkedIn API in any grails application. To add a LinkedIn Group, we first need to authorize the LinkedIn account which has either created that group or is the member/admin of the...

24-Aug-2012

Grails

Facebook ‘Like’ a wall post using Graph API

Hi, In one of my Grails project, i needed to 'Like' any Facebook wall post using facebook API. I searched about it and found a way to achieve this using Facebook Graph API and thought it worth sharing. To achieve it, we should have a valid facebook access_token, which can be obtained using steps described here. After obtaining a...

28-Jun-2012

Grails

Posting photos to Facebook album using Graph API

Hi, In my recent grails project, i needed to post images to the albums for Facebook Profile/ Fan page/ Group using facebook API. I searched a lot and find a way to achieve this using Facebook Graph API. To post any content over facebook, we need to have facebook access_token which can be obtained using steps described here After...

28-Jun-2012

Grails

Integrating LinkedIn with grails application

In my recent grails project, i needed to integrate LinkedIn with the application using LinkedIn API. I searched a lot about it and find the Java wrapper of linkedIn to use it with my grails application and thought it worth sharing. LinkedIn uses OAuth2.0 protocol for authorization when our application tries to access the data. ...

19-Mar-2012

Grails

Custom ‘Share’ button on Facebook wall post

Hi, In one of my Grails project, i needed to have Share feature on the messages/post published by our application on facebook wall. In Facebook, if the message/text published is simple text, then Share link appears on it, but if it contains any link/URL attached to it, then Facebook do not provides Share button on it. To...

16-Jan-2012

Grails

Way to check if user has “Liked” the Facebook Fan Page or Not

Hi, In my recent grails project, i was working on creating Apps for Facebook Fan Page and needed to show data to the user in such a way so that if he/she has "Liked" the page, then the content would be different from the case when the user has not liked it. In simple words, if user is Fan of any Facebook Page, then the content of App...

22-Dec-2011

Grails

Detecting mobile browsers in Javascript

In my recent grails project, I was working on mobile version of the application and needed to redirect users to the mobile version of our application, if they are accessing the application from any mobile device. I looked at various techniques/codes to detect the mobile device and redirect users to the specific URL. I encountered the...

18-Dec-2011