Facebook Account Marketplace
1.5 months | Solo Project | Completed
Developed a full-stack Facebook Account Marketplace with secure user authentication, integrated payment system, and admin dashboard. Includes account purchasing, order tracking, and user balance management.
View Live Project Contact to build a similar websiteProject Overview
I developed this project from the ground up using ASP.NET Core Razor Pages, focusing on modularity, security, and scalability.
The system was structured with a clean separation between user and admin roles, incorporating secure authentication, dynamic role-based routing, and custom middleware for access control.
I integrated Payos QR-based payments, implemented an automated system to check live Facebook account status, and ensured real-time stock updates for accurate availability, for bulk operations and performance optimization, I utilized multithreading techniques for features like ordering/importing multiple Facebook accounts.
The admin tools were designed to streamline account management with bulk actions, status checks, and data exports.
Key Features
- User authentication and authorization
- Order multiple Facebook accounts at once
- Order tracking and history
- Auto Check Live Facebook Account
- Personal balance tracking with secure QR payments via PayOS
- Advanced account list management with search, filters, pagination, delete, and export options
- Flexible discount code system for sales and promotions
- Clipboard copy and file export of Facebook account lists
- User data management
Challenges & Solutions
Challenge: Ensuring live account availability
Ensuring only live Facebook accounts are sold and automatically updating account availability when status changes.
Solution: Implemented a system that auto-checks Facebook account live status and updates the stock in real time to maintain accurate availability.
Challenge: Bulk account processing
Handling the upload and processing of large volumes of Facebook accounts efficiently.
Solution: Utilized multithreading techniques to optimize bulk account import, significantly reducing upload time and improving system responsiveness.
Challenge: Secure payment integration
Integrating seamless online payments while maintaining secure and trackable personal balances.
Solution: Integrated PayOS QR code payment API to enable secure balance top-ups and transaction tracking within user accounts.
Challenge: User interface customization
Designing a user interface tailored to customer-specific requirements and preferences.
Solution: Maintained close communication with the customer and continuously refined the UI design based on their feedback to ensure satisfaction.
Challenge: Account list management
Providing a smooth experience for users to manage and export large lists of purchased accounts.
Solution: Built advanced account list tools with pagination, filtering, copying, and exporting (as text/file) to enhance usability and efficiency.
Challenge: Server security and performance
Direct access to the VPS exposed its real IP address, making it vulnerable to DDoS attacks and other malicious traffic.
The server experienced performance drops during high traffic due to lack of traffic filtering.
Misconfigured Cloudflare rules initially caused false positives, blocking some legitimate users.
Solution: Enabled Cloudflare’s Full Proxy mode to completely mask the origin server IP. Set up Firewall Rules and Page Rules in Cloudflare to block known bots, limit request rates, and challenge suspicious traffic. Monitored real-time traffic via Cloudflare analytics to fine-tune the protection.
Challenge: Spam and duplicate orders
The process also risked being spammed via repeated submissions, potentially causing duplicate orders or draining inventory.
In rare edge cases, if a server crash occurred mid-transaction, users could become stuck in an "ordering" state, blocking them from future purchases.
Solution: Enforced a one-order-at-a-time rule: users cannot initiate a new purchase while one is being processed, effectively eliminating spam attempts or rapid double-clicking. Introduced an automated recovery task that runs every default minutes, scanning and resetting users who have been in the ordering state for over default minutes — resolving any cases where the process was interrupted (e.g. server crash or unexpected failure). Added fallback logic that uses a fresh database context when updates to user state fail, increasing fault tolerance and ensuring consistency even under failure conditions.
Challenge: Concurrency issues
The account purchase system faced concurrency issues when multiple users attempted to buy accounts at the same time, risking data conflicts and accidental double-selling of the same account.
Solution: Implemented a robust concurrency-control strategy using per-user locking combined with transaction scopes and isolated DbContext instances to ensure safe parallel order processing.
Project Highlights
Achieved faster order processing: Reduced account order before 500 from 1m59s optimize to 10s after more optimize I reached 1000 acc to 1s using sql, multithreading optimization.
.webp)
Solved concurrency issues: Implemented scoped transactions and isolated DbContext per request to avoid race conditions when multiple users purchase simultaneously. Added auto-recovery after default mins to reset stuck orders.
Prevented spam abuse: Built a mechanism using ordering state to prevent spam by blocking repeated or fast double-purchase attempts. Ensures smoother UX and protects inventory integrity.
Enhanced security with Cloudflare: Deployed to VPS with Cloudflare to mask server IP and mitigate DDoS attacks, ensuring higher availability and security.
Built intelligent real-time automation: Built automated system to check Facebook account status and update stock in real-time, improving accuracy and admin efficiency.
Empowered users with advanced data control: Improved user control over large datasets with flexible viewing and export options.
Integrated secure payment processing: Provided users with a reliable and traceable payment method inside the platform.
Project Info
Category: Web Application
My Role: Full-Stack Developer
Duration: 1.5 months
Team Size: Solo Project
Technologies: ASP.NET Core Razor Pages, Entity Framework Core, Html, Css, Js, SQL Server, Payos, Cloudflare, IIS
Quick Stats: Dev Time: 4 weeks, Features: 20+, User Roles: Admin / User, Payment: PayOS QR, Built By: 100% Solo, Responsive: ✅, Deployed: ✅