Connecting to internet slows down my game?

Hi,
I’m a beginner in unity and made a small game but the problem is my game lags when it is connected to internet.

I have used facebook sdk 6.0.0 but that is in the first scene of my game and the actual part in the second scene so why there is a lag in the game??

Thanks in advance.

@meat5000 i don’t think so as it is called when actually my game is in pause mode but my game lags during the gameplay.