At independence, while India supported Pakistan' membership at the US, Afghanistan opposed it at this was when it was the only other Muslim country other than Turkey not to be subordinated to ruled by foreign power. The Pashtun King of Afghanistan at that time wanted a united India or the de-recognition of the Durrand line because in his perspective he saw the regime in Pakistan as pro-British nd hence anti-Afghan.
So there are historical reasons that need to be addressed why Afghanistan has not had favorable relations with Pakistan which has nothing to do with Indian propaganda since independence