Facebook, competing with more apps for users’ attention, is giving subscribers a new reason to check in—the Nearby Friends feature.