πŸ”Social Verification

Overview

Social verification lets borrowers prove they're connected to lenders. Research shows loans with verified friend connections have 10% better repayment rates (Grameen Bank).

Current Status: Not yet implemented. Requires OAuth provider setup (CDP or Privy) and database configuration.

What Works Today

Farcaster

βœ… Fully Integrated

  • Check mutual follows via Neynar API

  • Display Farcaster profiles on borrower pages

  • Social proximity scoring (Adamic-Adar algorithm)

See: Farcaster Integration for details

What's Been Built

Database Schema

  • supabase/social_connections.sql - Table to store verified connections

  • Tracks who attested whom on which platform

  • Ready to use once you run the SQL

API Endpoint

  • POST /api/social/verify-friendship - Verifies connections

  • Supports Farcaster and Facebook (limited)

  • Stores verification in Supabase

React Components (Built but Not Integrated)

  • <VerifyFriendshipButton> - Button to verify a friendship

  • <SocialConnectionBadge> - Display verified connections

  • useSocialVerification() - Hook for verification logic

Note: These components currently use Privy for OAuth, but the app uses CDP. Need to rewrite for CDP OAuth system before integrating.

Platform Support Reality

Platform
Status
Why

Farcaster

βœ… Working

Open API, already integrated

Facebook

⚠️ Built but limited

API only shows friends who also use your app

Instagram

❌ Not possible

No API for friend connections

Twitter

❌ Not possible

API restrictions + ToS prohibits

LinkedIn

❌ Not possible

API restrictions + ToS prohibits

Reality Check: After Facebook's 2018 Cambridge Analytica restrictions, most social platforms locked down friend data. Only open protocols (Farcaster, Bluesky) give full access.

Research Foundation

Grameen Bank findings:

  • Loans with 20+ friend lenders: 98% repayment

  • Loans with 0 friend lenders: 88% repayment

  • +10% improvement from social connections

Implementation To-Do List

πŸ”§ Phase 0: Prerequisites (Blocked)

βœ… Phase 1: Database Setup

βœ… Phase 2: Integration

⏭️ Phase 3: Facebook Verification (Optional)

Note: Facebook only shows friends who also use your app (post-2018 API restrictions)

πŸ“Š Phase 4: Measurement

Future: On-Chain Attestations

Eventually migrate from Supabase to Ethereum Attestation Service (EAS) on Base for:

  • Decentralization

  • Composability (other apps can read)

  • Permanence

But for now, Supabase lets us iterate quickly.

See Also

Last updated