spring-attic / spring-social

Allows you to connect your applications with SaaS providers such as Facebook and Twitter.
http://projects.spring.io/spring-social
Apache License 2.0
619 stars 351 forks source link

Social tags #21

Closed rickcr closed 12 years ago

rickcr commented 12 years ago

Two JSP tags for determining if user is connected to a given provider (facebook or twitter.) Sample usage is provided in the SocialConnectedTag source. The tld is added to jars META-INF (this was my first time messing around with gradle and I added it via: metaInf << files("src/main/resources/tld/spring-social.tld") might be a better way I'm not sure.)

sample usage in JSP:

<%@ taglib prefix="social" uri="http://org.springframework/social" %>

[ show some FB profile info ] /social:connected
habuma commented 12 years ago

I merged this pull request, but made several small changes (formatting, taglib URI, etc). I also removed the check for supported providers in the base class, as it was hard-coded to a specific set of providers and didn't buy much value--checking for connections for non-existent providers results in a not-connected result, so that should suffice.

rickcr commented 12 years ago

Cool!

On Fri, Jan 13, 2012 at 4:50 PM, Craig Walls < reply@reply.github.com

wrote:

I merged this pull request, but made several small changes (formatting, taglib URI, etc). I also removed the check for supported providers in the base class, as it was hard-coded to a specific set of providers and didn't buy much value--checking for connections for non-existent providers results in a not-connected result, so that should suffice.


Reply to this email directly or view it on GitHub: https://github.com/SpringSource/spring-social/pull/21#issuecomment-3486904

Rick R