thirdwebPlayground
Wallets

Social Profiles

Enhance wallet authentication and context about user profiles with social identity data from ENS, Lens, and Farcaster

Documentation

Social Profiles

Get user's profiles across apps like ENS, Lens, Farcaster, and more.

Code
import { useSocialProfiles, useActiveAccount } from "thirdweb/react";

function App() {
  const account = useActiveAccount();
  const { data: profiles } = useSocialProfiles({
    client,
    address: account?.address,
  });

  return (
    <div className="flex flex-col gap-4">
      {profiles?.map((profile) => (
        <ProfileCard
          avatar={resolveScheme(profile.avatar)}
          name={profile.name}
          type={profile.type}
          bio={profile.bio}
        />
      ))}
    </div>
  );
}
Preview