My Apple ID won't let me access apps on my iPhone 6s

i have purchased a new iPhone 6s I can sign in with my apple I d and password but if I try to install Facebook app it asked my to sign in again but then says sign in failed
Re: my appel id wont let me access apps on my iphone 6s

Do you have separate Apple IDs for iCloud and the iTunes & App Store? If so, make sure you're inputting the passcode correctly. If the problem persists, please contact Apple Support to resolve it. Thanks.

Original thread: https://forums.imore.com/threads/my-apple-id-wont-let-me-access-apps-on-my-iphone-6s.382911/