I am a full time freelancer. Recently, I got a pretty large project. The project mainly depends on Facebook and Instagram API's. As we got started, I used Instagram sandbox and Facebook test account to create the web app. When everything was done, I had the client submit the app for Instagram. But Instagram declined the app and said these permission are only for the publisher and something. Anyhow, we have tried about 5-6 times but they keep declining it and they only permitted a basic permission but our app depends on other permissions as well. So here IG goes failed.
The client was also requiring something that wasn't possible to do with Facebook API. Like facebook API doesn't allow that and at the start, I told the client that it's not possible but he said it's possible he will let me know. My whole team is aware that it's not possible. We are working from last 6 years in this field so we were pretty sure about it.
Now both Facebook and IG app are not working the way he wants and same it's not our fault.
I am not sure what to do in this case. Should I ask for payment in full, or get half and get paid partially? Or do I just not get paid? We have worked about a month on this app and I am not sure what should I do next.