You are almost there. Have you tried like this way?
$following = [12, 21];
DB::table('social_feed')
->whereIn('user_id', $following)
->where('active', 1)
->where('current_user_id', Auth::id()) //it will take logged in user id
->orderBy('date_posted', 'DESC')
->take(100)->get();